From 5f4a3742e6b41a1e6de3f9f4b73b6f9034ea084e Mon Sep 17 00:00:00 2001 From: cpg Date: Mon, 15 Mar 2004 21:08:08 +0000 Subject: [PATCH] add MyDOS error codes, contributed by Stefan Haubenthal git-svn-id: svn://svn.cc65.org/cc65/trunk@2932 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- libsrc/atari/oserrlist.s | 15 ++++++++++----- libsrc/atari/oserror.s | 14 ++++++++++---- 2 files changed, 20 insertions(+), 9 deletions(-) diff --git a/libsrc/atari/oserrlist.s b/libsrc/atari/oserrlist.s index c914cec6d..b2b00768f 100644 --- a/libsrc/atari/oserrlist.s +++ b/libsrc/atari/oserrlist.s @@ -80,9 +80,14 @@ __sys_oserrlist: sys_oserr_entry 166, "point data length error" sys_oserr_entry 167, "file read-only" sys_oserr_entry 168, "invalid command for disk" - sys_oserr_entry 169, "directory full" - sys_oserr_entry 170, "file not found" - sys_oserr_entry 171, "invalid point command" - sys_oserr_entry 173, "bad disk" - sys_oserr_entry 176, "invalid disk format" + sys_oserr_entry 169, "directory full" + sys_oserr_entry 170, "file not found" + sys_oserr_entry 171, "invalid point command" + sys_oserr_entry 172, "already exists in parent directory" + sys_oserr_entry 173, "bad disk" + sys_oserr_entry 174, "directory not in parent directory" + sys_oserr_entry 175, "directory not empty" + sys_oserr_entry 176, "invalid disk format" + sys_oserr_entry 180, "not a binary file" + sys_oserr_entry 181, "invalid address range" sys_oserr_sentinel "unknown error" diff --git a/libsrc/atari/oserror.s b/libsrc/atari/oserror.s index 528122a48..82c423134 100644 --- a/libsrc/atari/oserror.s +++ b/libsrc/atari/oserror.s @@ -58,6 +58,7 @@ maptable: .byte ENOMEM ;SCRMEM = 147 ;($93) insufficient memory for screen mode ; codes below taken from "Mein Atari Computer" (german version of "Your Atari Computer") ; also SpartaDOS codes from http://www.atari-central.com/programming/cio_errors.txt +; MyDOS codes from Stefan Haubenthal .byte EUNKNOWN ; 148 - [SpartaDOS] unrecognized disk format .byte EUNKNOWN ; 149 - [SpartaDOS] disk created by incompatible version of SD .byte EBUSY ; 150 - serial port already open @@ -86,12 +87,17 @@ maptable: .byte ENOSPC ; 169 - directory full .byte ENOENT ; 170 - file not found .byte ESPIPE ; 171 - point command invalid - .byte EUNKNOWN ; 172 - haven't found documentation + .byte EUNKNOWN ; 172 - [MYDOS] already exists in parent directory .byte EUNKNOWN ; 173 - bad disk - format couldn't complete - .byte EUNKNOWN ; 174 - haven't found documentation - .byte EUNKNOWN ; 175 - haven't found documentation + .byte EUNKNOWN ; 174 - [MYDOS] directory not in parent directory + .byte EUNKNOWN ; 175 - [MYDOS] directory not empty .byte EUNKNOWN ; 176 - [DOS 3] incompatible file system + .byte EUNKNOWN ; 177 - haven't found documentation + .byte EUNKNOWN ; 178 - haven't found documentation + .byte EUNKNOWN ; 179 - haven't found documentation + .byte EUNKNOWN ; 180 - not a binary file + .byte EUNKNOWN ; 181 - [MYDOS] invalid address range - .byte EINVAL ; 177 - dummy (used by cc65 rtl) + .byte EINVAL ; 182 - dummy (used by cc65 rtl, see sysremove.s) MAX_OSERR_VAL = (* - maptable) -- 2.39.5