Function Code 5 — Format Track - Zenith Z-100 Reference Manual

Hide thumbs Also See for Z-100:
Table of Contents

Advertisement

Page 9.10
Disk Drives
Table 9.8 defines the parameters required by function codes 2 through 5.
Table 9.8. Required Parameters for Function Codes 2 through 5
REGISTER
P A R AMETER
DL
Drive ID Code as previously defined.
DH
Head (side) number.
0 to I for floppy drives
0 to 7 for Winchester drives
CH
Track number.
CL
Sector number.
On Winchester I/O calls, the two MSBs of CL contain the two
MSBs of the track number.
Number of sectors to be transferred.
AL
ES:BX
Pointer to the disk buffer; segment in ES.
Offset in BX not required for function code 4.
Function Code 5 — Format Track
When formatting a floppy disk, the buffer pointer, ES:BX, should point to a list
of sector headers, containing one sector header for every sector on the track
AL should contain the number of sectors per track. The format of each sector
header is:
Track Number
Head (disk side) Number
Sector Number
Bytes per Sector (see Function Code 0)
For Winchester drives, the data written to disk must first be loaded into the control-
ler's sector buffer using function code 15.

Advertisement

Table of Contents
loading

Table of Contents