From 0a6412b1471932a7ed416ae957210b1e3e9bd0a5 Mon Sep 17 00:00:00 2001 From: cpg Date: Thu, 26 Jan 2012 12:12:34 +0000 Subject: [PATCH] add "invalid parameter" error code -- contributed by Stefan Haubenthal git-svn-id: svn://svn.cc65.org/cc65/trunk@5426 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- libsrc/atari/oserrlist.s | 1 + libsrc/atari/oserror.s | 5 +++-- libsrc/atari/syschdir.s | 2 +- libsrc/atari/sysmkdir.s | 2 +- libsrc/atari/sysremove.s | 2 +- 5 files changed, 7 insertions(+), 5 deletions(-) diff --git a/libsrc/atari/oserrlist.s b/libsrc/atari/oserrlist.s index b2b00768f..d1ecb35b7 100644 --- a/libsrc/atari/oserrlist.s +++ b/libsrc/atari/oserrlist.s @@ -90,4 +90,5 @@ __sys_oserrlist: sys_oserr_entry 176, "invalid disk format" sys_oserr_entry 180, "not a binary file" sys_oserr_entry 181, "invalid address range" + sys_oserr_entry 182, "invalid parameter" sys_oserr_sentinel "unknown error" diff --git a/libsrc/atari/oserror.s b/libsrc/atari/oserror.s index ccb01a4d6..659cb1ed0 100644 --- a/libsrc/atari/oserror.s +++ b/libsrc/atari/oserror.s @@ -58,7 +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 +; MyDOS and XDOS 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 @@ -97,7 +97,8 @@ maptable: .byte EUNKNOWN ; 179 - haven't found documentation .byte EUNKNOWN ; 180 - not a binary file .byte EUNKNOWN ; 181 - [MYDOS] invalid address range + .byte EUNKNOWN ; 182 - [XDOS] invalid parameter - .byte EINVAL ; 182 - dummy (used by cc65 rtl, see sysremove.s) + .byte EINVAL ; 183 - dummy (used by cc65 rtl, see sysremove.s) MAX_OSERR_VAL = (* - maptable) diff --git a/libsrc/atari/syschdir.s b/libsrc/atari/syschdir.s index 901c15e4c..e91d7c83b 100644 --- a/libsrc/atari/syschdir.s +++ b/libsrc/atari/syschdir.s @@ -43,7 +43,7 @@ iocbok: stx tmp4 ; remember IOCB index jsr ucase_fn bcc ucok1 - lda #182 ; see oserror.s + lda #183 ; see oserror.s rts ucok1: diff --git a/libsrc/atari/sysmkdir.s b/libsrc/atari/sysmkdir.s index 967daf1c8..68f1a5087 100644 --- a/libsrc/atari/sysmkdir.s +++ b/libsrc/atari/sysmkdir.s @@ -49,7 +49,7 @@ iocbok: stx tmp4 ; remember IOCB index jsr ucase_fn bcc ucok1 - lda #182 ; see oserror.s + lda #183 ; see oserror.s rts ucok1: diff --git a/libsrc/atari/sysremove.s b/libsrc/atari/sysremove.s index a11af79fe..581cbd945 100644 --- a/libsrc/atari/sysremove.s +++ b/libsrc/atari/sysremove.s @@ -40,7 +40,7 @@ iocbok: stx tmp4 ; remember IOCB index jsr ucase_fn bcc ucok1 - lda #182 ; see oserror.s + lda #183 ; see oserror.s rts ucok1: -- 2.39.5