EasyManua.ls Logo

Commodore Amiga A500 - Page 144

Commodore Amiga A500
283 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
UWORD adr-BufferAddr
;
offset into MEMF-
-BUFFER memory for
buffer
UWORD
adr-Err
;
return code.
0
if
all OK
LABEL
AmigaDskReq-SIZEOF
;
Function codes for AmigaDskReq adr-Fnctn word:
ADRFNCTN-INIT EQU
0
;
given nothings, sets adr-
Part to
#
partitions
ADRFNCTN-READ EQU 1
;
given partition, offset,
count, buffer
ADRFNCTN-WRITE EQU
2
;
given partition, offset,
count, buffer
ADRFNCTN-SEEK EQU
3
;
given partition, offset
ADRFNCTN-INFO EQU 4
;
given part, buff adr, cnt.
copys in a
DskPartition
structure. cnt set to actual
number of bytes copied.
;
Error codes for adr-Err, returned in low byte:
ADRERROK EQU
0
;
no error
ADRERROFFSET EQU
1
;
offset not on sector
boundary
ADRERRCOUNT EQU
2
;
dskcount not a multiple
of sector size
ADRERRPART EQU
3
;
partition does not exist
ADRERRFNCT EQU 4
;
illegal function code
ADRERREOF EQU
5
;
offset past end of
partition
ADRERRMULPL EQU 6
;
multiple calls while
pending service
:
Error condition from
/BM-PC BIOS,
returned in high byte:
ADRERRSENSEFAIL EQU
ADRERRUNDEF-ERR EQU
ADR-ERRTIMEOUT EQU
ADRERRBAD-SEEK EQU
ADRERRBAD-CNTRLR EQU
ADRERRDATACORRECTED EQU
ADRERRBAD-ECC
EQU
ADRERRBAD-TRACK EQU
ADRERRDMABOUNDARY EQU
ADRERRINIT-FAIL
EQU
ADRERRBAD-RESET EQU
ADRERRRECRD-NOT-FOUND EQU
ADRERRBADADDRMARK EQU
ADRERRBAD-CMD
EQU
S
ff
Sbb
$80
$40
$20
$1 1
;
data corrected
$1
0
Sob
$09
$07
$05
$04
$02
$0
1
ENDC !JANUS-186BLOCKI

Related product manuals