User`s manual
.DSKRD .DSKWR
5-14
5
.DSKRD
.DSKWR
Name
.DSKRD - Disk read routine
.DSKWR - Disk write routine
Codes
$0010
$0011
Description
These routines are used to read and write blocks of data from/to the
speciÞed disk or tape device. Information about the data transfer is
passed in a command packet which has been built somewhere in
memory. (The user program must Þrst manually prepare the
packet.) The address of the packet is passed as an argument to the
routine. The same command packet format is used for .DSKRD and
.DSKWR. It is eight half-words in length and is arranged as follows:
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 Block Number (Disk) Most SigniÞcant Half-Word
or
$0A File Number (Tape) Least SigniÞcant Half-Word
$0C Number of Blocks
$0E Flag Byte Address ModiÞer