Commodore Amiga A500 Technical Reference Manual page 160

Hide thumbs Also See for Amiga A500:
Table of Contents

Advertisement

J_FREE_MEM
equ 3
J_SET_PARAM
equ 4
J_SET_SERV1CE equ 5
J_STOP_SERVICE equ 6
J_CALL_AMIGA
equ 7
J_WAIT_AM1GA
equ 8
J_CHECK_AMIGA equ 9
Status Returns:
J_NO_SERVICE
equ 0ffh ; no service available
J_PENDING
equ 0
J.FINISHED
equ 1
J_OK
equ 0
J_NCLMEMORY
equ 3
J_ILL_FNCTN
equ 4
Disk request structure for higher level Amiga file request from 8086:
AmigaDskReq
STRUC
adr_Fnctn
DW
adr_File
DW
adr_Offset_h
DW
adr_Offset_1
DW
adr_Coun_h
DW
adr_Count_l
DW
adr_BufferAddr
DW
adr_Err
DW
AmigaDskReq
ENDS
Function codes for AmigaDskReq adr_Fnctn word
ADR_FNCTN_INIT
ADR_FNCTN_READ
ADR_FNCTN_WRITE
ADR_FNCTN_SEEK
ADR_FNCTN_INFO
ADR_FNCTN_OPEN_OLD EQU 5 given ASC11Z pathname in buffer
ADR_FNCTN_OPEN_NEW EQU 6 given ASC11Z pathname in buffer
ADR_FNCTN_CLOSE
ADR_FNCTN_DELETE
Error codes for adr_Err, returned in low byte
ADR_ERR_OK
ADR_ERR_OFFSET
ADR_ERR_COUNT
ADR_ERR_FILE
ADR_ERR_FNCT
ADR_ERR_EOF
ADR_ERR_MULPL
ADR_ERR_FILE_COUNT EQU 7 too many open files
157
; after J_CALL_AMIGA and
J_CHECK_AMIGA
; after J_XALLAMIGA and
J_CHECK_AMIGA
; general good return
; requested memory not available
; Illegal function code used in AH
?
function code (see below)
?
file number
?
byte offset into file high
?
byte offset into file low
?
number of bytes to transfer high
?
number of bytes to transfer low
?
offset into MEMF_BUFFER
memory for buffer
?
return code, 0 if all OK
EQU 0 currently not used
EQU 1 given file, offset, count, buffer
EQU 2 given file, offset count buffer
EQU 3 given file, offset
EQU 4 currently not used
EQU 7 given file
EQU 8 given ASCIIZ pathname in buffer
EQU 0 no error
EQU 1 not used
EQU 2 not used
EQU 3 file does not exist
EQU 4 illegal function code
EQU 5 offset past end of file
EQU 6 not used

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Amiga a2000

Table of Contents