•  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-FileFlopwr()
Flopfmt()
Flopver()                                                             XBIOS

Syntax

WORD Flopver( buf, rsrvd, dev, sector, track, side, count )
VOIDP buf;
LONG rsrvd;
WORD dev, sector, track, side, count;

Function      Flopver() verifies data on a floppy disk with data in
              memory.

Opcode        19 (0x13)

Availability  All TOS versions.

Parameters    buf is a pointer to a word-aligned buffer to compare the
              sector against. rsrvd is unused and should be 0.
              dev specifies the drive to verify ('A:' = FLOP_DRIVEA (0),
              'B:' = FLOP_DRIVEB (1)). This function verifies count
              sectors starting at sector sector, track track, side side.

Binding       move.w   count,-(sp)
              move.w   side,-(sp)
              move.w   track,-(sp)
              move.w   sector,-(sp)
              move.w   dev,-(sp)
              move.l   rsrvd,-(sp)
              pea      buf
              move.w   #$13,-(sp)
              trap     #14
              lea      20(sp),sp

Return Value  Flopver() returns 0 if all sectors were successfully
              verified or a non-zero value otherwise.

Caveats       This function only verifies sectors in physical order.

Comments      As with Flopfmt(), upon the return of the function, buf is
              filled in with a WORD array containing a list of any sectors
              which failed. The array is terminated with a NULL.

See Also      Flopwr(), Flopfmt()