Fixed an error.

git-svn-id: svn://svn.cc65.org/cc65/trunk@3837 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz 2008-04-15 06:44:46 +00:00
parent 4b27f80c91
commit 6c5c0be79f

View file

@ -15,14 +15,14 @@
__maperrno:
lda __oserror ; Get the error code
beq @L1 ; Jump if no error
setoserror:
beq L9 ; Jump if no error
setoserror:
ldx #$00 ; Clear error
stx __oserror
jsr __osmaperrno ; Map the code
sta __errno
stx __errno+1
@L1: rts
L9: rts