]> git.sur5r.net Git - cc65/blob - libsrc/cbm/oserrlist.s
atari5200: testcode/lib/atari5200/hello.c: adapt to changed COLOR_xxx defines
[cc65] / libsrc / cbm / oserrlist.s
1 ;
2 ; 2002-07-18, Ullrich von Bassewitz
3 ; 2014-05-28, Greg King
4 ;
5 ; Defines the platform-specific error list.
6 ;
7 ; The table is built as a list of entries:
8 ;
9 ;       .byte   entrylen
10 ;       .byte   errorcode
11 ;       .asciiz errormsg
12 ;
13 ; and, terminated by an entry with length zero that is returned if the
14 ; error code could not be found.
15 ;
16
17         .export         __sys_oserrlist
18
19 ;----------------------------------------------------------------------------
20 ; Macros used to generate the list (may get moved to an include file?)
21
22 ; Regular entry
23 .macro  sys_oserr_entry         code, msg
24         .local  Start, End
25 Start:  .byte   End - Start
26         .byte   code
27         .asciiz msg
28 End:
29 .endmacro
30
31 ; Sentinel entry
32 .macro  sys_oserr_sentinel      msg
33         .byte   0                       ; Length is always zero
34         .byte   0                       ; Code is unused
35         .asciiz msg
36 .endmacro
37
38 ;----------------------------------------------------------------------------
39 ; The error message table
40
41 .rodata
42
43 __sys_oserrlist:
44         sys_oserr_entry          1, "Too many open files"
45         sys_oserr_entry          2, "File is open"
46         sys_oserr_entry          3, "File not open"
47         sys_oserr_entry          4, "File not found"
48         sys_oserr_entry          5, "Device not present"
49         sys_oserr_entry          6, "File not input"
50         sys_oserr_entry          7, "File not output"
51         sys_oserr_entry          8, "Filename missing"
52         sys_oserr_entry          9, "Illegal device"
53         sys_oserr_entry         20, "Read error (No sector header)"
54         sys_oserr_entry         21, "Read error (No sync mark)"
55         sys_oserr_entry         22, "Read error (No sector data)"
56         sys_oserr_entry         23, "Read error (Bad data checksum)"
57         sys_oserr_entry         24, "Read error (Decoding problem)"
58         sys_oserr_entry         25, "Write error (Verify failed)"
59         sys_oserr_entry         26, "Write protected"
60         sys_oserr_entry         27, "Read error (Bad header checksum)"
61         sys_oserr_entry         28, "Write error (overrun)"
62         sys_oserr_entry         29, "Disk ID mismatch"
63         sys_oserr_entry         30, "Syntax error (Command not recognized)"
64         sys_oserr_entry         31, "Syntax error (Command not implemented)"
65         sys_oserr_entry         32, "Syntax error (Command too long)"
66         sys_oserr_entry         33, "Syntax error (Invalid write filename)"
67         sys_oserr_entry         34, "Syntax error (No file given)"
68         sys_oserr_entry         39, "System file not found"
69         sys_oserr_entry         49, "Invalid format"
70         sys_oserr_entry         50, "Record not present"
71         sys_oserr_entry         51, "Overflow in record"
72         sys_oserr_entry         52, "File too large"
73         sys_oserr_entry         60, "Write file open"
74         sys_oserr_entry         61, "File not open"
75         sys_oserr_entry         62, "File not found"
76         sys_oserr_entry         63, "File exists"
77         sys_oserr_entry         64, "File type mismatch"
78         sys_oserr_entry         65, "No block"
79         sys_oserr_entry         66, "Illegal track or sector"
80         sys_oserr_entry         67, "Illegal system track or sector"
81         sys_oserr_entry         70, "No channel"
82         sys_oserr_entry         71, "BAM error"
83         sys_oserr_entry         72, "Disk full"
84         sys_oserr_entry         73, "DOS version mismatch"
85         sys_oserr_entry         74, "Drive not ready"
86         sys_oserr_entry         75, "Format error"
87         sys_oserr_entry         77, "Illegal partition"
88         sys_oserr_entry         78, "Bad system area"
89         sys_oserr_sentinel      "Unknown error"