2 ; Stefan Haubenthal, 2003-12-24
3 ; Ullrich von Bassewitz, 18.07.2002
5 ; Defines the platform specific error list.
7 ; The table is built as a list of entries
13 ; and terminated by an entry with length zero that is returned if the
14 ; error code could not be found.
17 .export __sys_oserrlist
19 ;----------------------------------------------------------------------------
20 ; Macros used to generate the list (may get moved to an include file?)
23 .macro sys_oserr_entry code, msg
25 Start: .byte End - Start
32 .macro sys_oserr_sentinel msg
33 .byte 0 ; Length is always zero
34 .byte 0 ; Code is unused
38 ;----------------------------------------------------------------------------
39 ; The error message table
44 sys_oserr_entry $01, "Bad system call number"
45 sys_oserr_entry $04, "Bad system call parameter count"
46 sys_oserr_entry $25, "Interrupt table full"
47 sys_oserr_entry $27, "I/O error"
48 sys_oserr_entry $28, "No device connected"
49 sys_oserr_entry $2B, "Disk write protected"
50 sys_oserr_entry $2E, "Disk switched"
51 sys_oserr_entry $2F, "Device off-line"
52 sys_oserr_entry $40, "Invalid pathname"
53 sys_oserr_entry $42, "Maximum number of files open"
54 sys_oserr_entry $43, "Invalid reference number"
55 sys_oserr_entry $44, "Directory not found"
56 sys_oserr_entry $45, "Volume not found"
57 sys_oserr_entry $46, "File not found"
58 sys_oserr_entry $47, "Duplicate filename"
59 sys_oserr_entry $48, "Volume full"
60 sys_oserr_entry $49, "Volume directory full"
61 sys_oserr_entry $4A, "Incompatible file format"
62 sys_oserr_entry $4B, "Unsupported storage_type"
63 sys_oserr_entry $4C, "End of file encountered"
64 sys_oserr_entry $4D, "Position out of range"
65 sys_oserr_entry $4E, "File access error"
66 sys_oserr_entry $50, "File is open"
67 sys_oserr_entry $51, "Directory structure damaged"
68 sys_oserr_entry $52, "Not a ProDOS disk"
69 sys_oserr_entry $53, "Invalid system call parameter"
70 sys_oserr_entry $55, "Volume Control Block table full"
71 sys_oserr_entry $56, "Bad buffer address"
72 sys_oserr_entry $57, "Duplicate volume"
73 sys_oserr_entry $5A, "File structure damaged"
74 sys_oserr_sentinel "Unknown error"