Return EUNKNOWN instead of EINVAL if the error code cannot be mapped.

git-svn-id: svn://svn.cc65.org/cc65/trunk@4695 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
uz 2010-06-03 21:10:22 +00:00
parent a9ba343e1b
commit d7aaac7e71

View file

@ -18,10 +18,10 @@ __osmaperrno:
dex
bne @L1 ; Next entry
; Code not found, return EINVAL
; Code not found, return EUNKNOWN
lda #<EINVAL
ldx #>EINVAL
lda #<EUNKNOWN
ldx #>EUNKNOWN
rts
; Found the code