•  Back 
  •  XBIOS Function Reference 
  •  Index 
  •  Tree View 
  •  Cross references 
  •  %About 
  •  Show info about hypertext 
  •  View a new file 
Topic       : The ATARI Compendium
Author      : Scott Sanders / JAY Software
Version     : 1.25 (20/6/2003)
Subject     : Documentation
Nodes       : 1117
Index Size  : 32614
HCP-Version : 6
Compiled on : Atari
@charset    : UTF-8
@lang       : en
@default    : 
@help       : %About
@options    : +g -i -t4 +y +z
@width      : 100
View Ref-FileFloprate()                                                            XBIOS

Syntax

WORD Floprate( dev, rate )
WORD dev, rate;

Function      Floprate() sets the seek rate of the specified floppy drive.

Opcode        41 (0x29)

Availability  Available on all TOS versions except 1.00.

Parameters    dev indicates the floppy drive whose seek rate you wish to
              modify ('A:' = FLOP_DRIVEA (0), 'B:' = FLOP_DRIVEB (1)).
              rate specifies the seek rate as follows:

              Name     rate   Meaning

              FRATE_6    0    Set seek rate to 6ms

              FRATE_12   1    Set seek rate to 12ms

              FRATE_2    2    Set seek rate to 2ms

              FRATE_3    3    Set seek rate to 3ms

              A rate value of FRATE_INQUIRE (1) will inquire the current
              seek rate without modifying it.

Binding       move.w   rate,-(sp)
              move.w   dev,-(sp)
              move.w   #$29,-(sp)
              trap     #14
              addq.l   #6,sp

Return Value  Floprate() returns the prior seek rate for the specified
              drive.

Comments      TOS version 1.00 can have its seek rates set by setting the
              system variable (_seekrate (WORD *)0x440 ) to the desired
              value (as in rate). Note that you can only set the seek rate
              for both drives in this manner.