2 ; Ullrich von Bassewitz, 18.07.2002
4 ; Defines the platform specific error list.
6 ; The table is built as a list of entries
12 ; and terminated by an entry with length zero that is returned if the
13 ; error code could not be found.
16 .export __sys_oserrlist
18 ;----------------------------------------------------------------------------
19 ; Macros used to generate the list (may get moved to an include file?)
22 .macro sys_oserr_entry code, msg
24 Start: .byte End - Start
31 .macro sys_oserr_sentinel msg
32 .byte 0 ; Length is always zero
33 .byte 0 ; Code is unused
37 ;----------------------------------------------------------------------------
38 ; The error message table
43 sys_oserr_entry 1, "Too many open files"
44 sys_oserr_entry 2, "File is open"
45 sys_oserr_entry 3, "File not open"
46 sys_oserr_entry 4, "File not found"
47 sys_oserr_entry 5, "Device not present"
48 sys_oserr_entry 6, "File not input"
49 sys_oserr_entry 7, "File not output"
50 sys_oserr_entry 8, "Filename missing"
51 sys_oserr_entry 9, "Ilegal device"
52 sys_oserr_entry 20, "Read error"
53 sys_oserr_entry 21, "Read error"
54 sys_oserr_entry 22, "Read error"
55 sys_oserr_entry 23, "Read error"
56 sys_oserr_entry 24, "Read error"
57 sys_oserr_entry 25, "Write error"
58 sys_oserr_entry 26, "Write protect on"
59 sys_oserr_entry 27, "Read error"
60 sys_oserr_entry 28, "Write error"
61 sys_oserr_entry 29, "Disk ID mismatch"
62 sys_oserr_entry 30, "Syntax error"
63 sys_oserr_entry 31, "Syntax error"
64 sys_oserr_entry 32, "Syntax error"
65 sys_oserr_entry 33, "Syntax error (invalid file name)"
66 sys_oserr_entry 34, "Syntax error (no file given)"
67 sys_oserr_entry 39, "Syntax error"
68 sys_oserr_entry 50, "Record not present"
69 sys_oserr_entry 51, "Overflow in record"
70 sys_oserr_entry 52, "File too large"
71 sys_oserr_entry 60, "Write file open"
72 sys_oserr_entry 61, "File not open"
73 sys_oserr_entry 62, "File not found"
74 sys_oserr_entry 63, "File exists"
75 sys_oserr_entry 64, "File type mismatch"
76 sys_oserr_entry 65, "No block"
77 sys_oserr_entry 66, "Illegal track or sector"
78 sys_oserr_entry 67, "Illegal system track or sector"
79 sys_oserr_entry 70, "No channel"
80 sys_oserr_entry 71, "Directory error"
81 sys_oserr_entry 72, "Disk full"
82 sys_oserr_entry 73, "DOS version mismatch"
83 sys_oserr_entry 74, "Drive not ready"
84 sys_oserr_sentinel "Unknown error"