User`s manual

.DSKFMT
5-27
5
.DSKFMT
Name
.DSKFMT - Disk format routine
Code
$0014
Description
This routine allows you to send a format command to the speciÞed
device. The parameters required for the command are passed in a
command packet which has been built somewhere in memory. The
address of the packet is passed as an argument to the routine. The
format of the packet is as follows:
Field descriptions:
FEDCBA9876543210
$00 Controller LUN Device LUN
$02 Status Half-Word
$04
Memory Address
Most SigniÞcant Half-Word
$06 Least SigniÞcant Half-Word
$08
Disk Block Number
Most SigniÞcant Half-Word
$0A Least SigniÞcant Half-Word
$0C 0
$0E Flag Byte Address ModiÞer
Controller LUN Logical Unit Number (LUN) of controller to use
Device LUN Logical Unit Number of device to use
Status
Half-Word
This status half-word reßects the result of the
operation. It is zero if the command completed
without errors. Refer to Appendix F for meanings
of returned error codes.