•  Back 
  •  Drive functions 
  •  Index 
  •  Tree View 
  •  Cross references 
  •  Help page 
  •  Show info about hypertext 
  •  View a new file 
Topic       : TOS - The Operating System
Author      : 
Version     : tos.hyp (December 19, 2008)
Subject     : Programmieren/Atari
Nodes       : 3010
Index Size  : 93790
HCP-Version : 5
Compiled on : Atari
@charset    : atarist
@lang       : 
@default    : Title
@help       : 
@options    : +g -i -s +x +zz -t4
@width      : 70
View Ref-File4.13.4  Floprate                                                   TOS

 Name:         »Floppy rate« - Read or set the seek rate of a floppy 
               drive.

 Opcode:       41

 Syntax:       int16_t Floprate( int16_t devno, int16_t newrate );

 Description:  The XBIOS routine Floprate returns or sets the current 
               seek rate. The following apply:

                Parameter  Meaning

                devno      Drive number:

                            0  =  Drive A: 
                            1  =  Drive B: etc 

                newrate

                            -1  =  Do not alter seek rate 
                             0  =  Seek rate of  6ms 
                             1  =  Seek rate of 12ms 
                             2  =  Seek rate of  2ms 
                             3  =  Seek rate of  3ms 

               Note: As of MagiC 3, one can additionally use Floprate 
               (-1, newrate) to set the timeout for the floppy; a 
               value of 300 means 1.5 seconds) this is the value that 
               is set by default at booting).

               With older ROM-TOS versions one has to use the 
               previously undocumented system variables:

                TOS-Version  Drive A:  Drive B: 
                   1.00       0x0a08    0xa0c 
                   1.02       0x0a4e    0xa52 

               For portable setting one can use the following 
               sample routine.

 Return value: The function returns the prior seek rate for the drive.

 Availability: The function is only available as of TOS 1.04.

 Group:        Drive functions

 See also:     Binding   Flopwr   Floprd   Flopver   Flopfmt