Updated the CBM error tables.

* Added more mappings between DOS and C codes.
* Changed generic error messages into specific ones.
This commit is contained in:
Greg King
2014-05-26 09:03:43 -04:00
parent 0c08b62630
commit 3d6f54b7a6
2 changed files with 48 additions and 48 deletions

View File

@@ -1,8 +1,9 @@
;
; Ullrich von Bassewitz, 17.05.2000
; 2000-05-17, Ullrich von Bassewitz
; 2014-05-26, Greg King
;
; int __fastcall__ _osmaperrno (unsigned char oserror);
; /* Map a system specific error into a system independent code */
; /* Map a system-specific error into a system-independent code. */
;
.include "errno.inc"
@@ -41,37 +42,37 @@ ErrTab:
.byte 7, EINVAL ; File not output
.byte 8, EINVAL ; Filename missing
.byte 9, ENODEV ; Illegal device
; .byte 20, ; Read error
; .byte 21, ; Read error
; .byte 22, ; Read error
; .byte 23, ; Read error
; .byte 24, ; Read error
; .byte 25, ; Write error
.byte 20, EBUSY ; No sector header
.byte 21, EBUSY ; No sync mark
.byte 22, EIO ; No sector data
.byte 23, EIO ; Checksum error
.byte 24, EIO ; Decode error
.byte 25, EIO ; Verify error
.byte 26, EACCES ; Write protect on
; .byte 27, ; Read error
; .byte 28, ; Write error
; .byte 29, ; Disk ID mismatch
; .byte 30, ; Syntax error
; .byte 31, ; Syntax error
; .byte 32, ; Syntax error
.byte 33, EINVAL ; Syntax error (invalid file name)
.byte 34, EINVAL ; Syntax error (no file given)
; .byte 39, ; Syntax error
; .byte 50, ; Record not present
; .byte 51, ; Overflow in record
; .byte 52, ; File too large
.byte 60, EINVAL ; Write file open
.byte 27, EIO ; Checksum error
.byte 28, EIO ; Write overrun
.byte 29, EBUSY ; Disk ID mismatch
.byte 30, EINVAL ; Command not recognized
.byte 31, ENOSYS ; Command not implemented
.byte 32, EINVAL ; Command too long
.byte 33, EINVAL ; Invalid write filename
.byte 34, EINVAL ; No file given
.byte 39, ENOENT ; File not found
.byte 50, ESPIPE ; Record not present
.byte 51, ENOSPC ; Overflow in record
.byte 52, ENOSPC ; File too large
.byte 60, EBUSY ; Write file open
.byte 61, EINVAL ; File not open
.byte 62, ENOENT ; File not found
.byte 63, EEXIST ; File exists
.byte 64, EINVAL ; File type mismatch
; .byte 65, ; No block
; .byte 66, ; Illegal track or sector
; .byte 67, ; Illegal system track or sector
.byte 65, ESPIPE ; No block
.byte 66, EINVAL ; Illegal track or sector
.byte 67, EIO ; Illegal system track or sector
.byte 70, EBUSY ; No channel
; .byte 71, ; Directory error
; .byte 72, ; Disk full
; .byte 73, ; DOS version mismatch
.byte 71, EIO ; BAM error
.byte 72, ENOSPC ; Disk full
.byte 73, EACCES ; DOS version mismatch
.byte 74, ENODEV ; Drive not ready
ErrTabSize = (* - ErrTab)