; File:  E16.ProDOS
;
;
; Copyright Apple Computer, Inc. 1986-90
; All Rights Reserved
;
;
invalidCallNum GEQU $0001 ; invalid call number
unclaimedIntErr GEQU $01 ; fatal error - unclaimed interrupt
badPBlockPtr GEQU $05 ; call pointer out of bounds
pdosActiveErr GEQU $06 ; ProDOS is active
pdosBusyErr GEQU $07 ; ProDOS is busy
vcbUnusable GEQU $0A ; fatal error - VCB unusable
fcbUnusable GEQU $0B ; fatal error - FCB unusable
badBlockZero GEQU $0C ; fatal error - block zero allocated illegally
shdwInterruptErr GEQU $0D ; fatal error - interrupt occured while I/O shadowing off
  AIF  C:devNotFound,.past ; device not found
devNotFound GEQU $10
.past
badDevRefNum GEQU $11 ; invalid device reference number
osVersionErr GEQU $11 ; Wrong OS version
badReqCode GEQU $20 ; invalid request code
intTableFull GEQU $25 ; interrupt table full
invalidOperation GEQU $26 ; invalid operation
ioError GEQU $27 ; I/O error
noDevConnect GEQU $28 ; no device connected
writeProtectErr GEQU $2B ; write protect error
diskSwitchErr GEQU $2E ; disk switched error
badPathname GEQU $40 ; invalid pathname syntax
fcbFullErr GEQU $42 ; FCB full error
badFileRefNum GEQU $43 ; invalid file reference number
  AIF  C:pathNotFound,.past ; path not found
pathNotFound GEQU $44
.past
volumeNotFound GEQU $45 ; volume not found
  AIF  C:fileNotFound,.past ; file not found
fileNotFound GEQU $46
.past
dupFileName GEQU $47 ; duplicate file name
volumeFullErr GEQU $48 ; volume full error
dirFullErr GEQU $49 ; directory full error
versionErr GEQU $4A ; version error (incompatible file format)
  AIF  C:badStoreType,.past ; unsupported (or incorrect) storage type
badStoreType GEQU $4B
.past
  AIF  C:eofEncountered,.past ; end-of-file encountered
eofEncountered GEQU $4C
.past
positionRangeErr GEQU $4D ; position out of range
accessErr GEQU $4E ; access not allowed
fileOpenErr GEQU $50 ; file is open
dirDamaged GEQU $51 ; directory structure is damaged
badVolType GEQU $52 ; unsupported volume type
  AIF  C:paramRangeErr,.past ; parameter out of range
paramRangeErr GEQU $53
.past
memoryFullErr GEQU $54 ; out of memory
vcbFullErr GEQU $55 ; VCB full error
dupVolumeErr GEQU $57 ; duplicate volume error
notBlkDevErr GEQU $58 ; not a blocked device
  AIF  C:invalidLevel,.past ; invalid level
invalidLevel GEQU $59
.past
blkNumRangeErr GEQU $5A ; block number out of range
notSameVolErr GEQU $5B ; different volumes found on ChangePath call
notExecSysFile GEQU $5C ; not an executable system file
osUnavailable GEQU $5D ; Operating System/file system not available
deallocateRamErr GEQU $5E ; Cannot deallocate /RAM
  AIF  C:stackOverflow,.past ; Return stack overflow
stackOverflow GEQU $5F
.past
dataUnavailable GEQU $60 ; Data unavailable
endofDirectory GEQU $0061
P_READ_ENABLE GEQU $01
P_WRITE_ENABLE GEQU $02
P_DESTROY_ENABLE GEQU $80
P_RENAME_ENABLE GEQU $40
; offset constants for BlockRec
oblockDevNum GEQU 0
oblockDataBuffer GEQU 2
oblockNum GEQU 6
; offset constants for DevNumRec
odevName GEQU 0
odevNum GEQU 4
; offset constants for DInfoRec
odidevNum GEQU 0
odidevName GEQU 2
; offset constants for DirEntryRec
oderefNum GEQU 0
odeflags GEQU 2
odebase GEQU 4
odedisplacement GEQU 6
odenameBuffer GEQU 8
odeentryNum GEQU 12
odefileType GEQU 14
odeendOfFile GEQU 16
odeblockCount GEQU 20
odecreateTime GEQU 24
odemodTime GEQU 32
odeaccess GEQU 40
odeauxType GEQU 42
odefileSysID GEQU 46
; offset constants for EOFRec
oeofRefNum GEQU 0
oeofPosition GEQU 2
; offset constants for FileIORec
ofileRefNum GEQU 0
odataBuffer GEQU 2
orequestCount GEQU 6
otransferCount GEQU 10
; offset constants for FileRec
ofrpathname GEQU 0
ofrfAccess GEQU 4
ofrfileType GEQU 6
ofrauxType GEQU 8
ofrstorageType GEQU 12
ofrcreateDate GEQU 14
ofrcreateTime GEQU 16
ofrmodDate GEQU 18
ofrmodTime GEQU 20
ofrblocksUsed GEQU 22
; offset constants for EraseDiskRec
;odevName GEQU 0
ovolName GEQU 4
ofileSysID GEQU 8
; offset constants for InterruptRec
ointNum GEQU 0
ointCode GEQU 2
; offset constants for MarkRec
omarkRefNum GEQU 0
oposition GEQU 2
; offset constants for NewLineRec
onewLRefNum GEQU 0
oenableMask GEQU 2
onewlineChar GEQU 4
; offset constants for OpenRec
oopenRefNum GEQU 0
oopenPathname GEQU 2
oioBuffer GEQU 6
; offset constants for PathNameRec
;opathname GEQU 0
onewPathname GEQU 4
; offset constants for PrefixRec
oprefixNum GEQU 0
oprefix GEQU 2
; offset constants for QuitRec
oqrquitPathname GEQU 0
oqrflags GEQU 4
; offset constants for VolumeRec
ovrdeviceName GEQU 0
ovrvolName GEQU 4
ovrtotalBlocks GEQU 8
ovrfreeBlocks GEQU 12
ovrfileSysID GEQU 16
