From 6c5c0be79f8d0bf63b875faad439bbefd55df150 Mon Sep 17 00:00:00 2001 From: cuz Date: Tue, 15 Apr 2008 06:44:46 +0000 Subject: [PATCH] Fixed an error. git-svn-id: svn://svn.cc65.org/cc65/trunk@3837 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- libsrc/common/maperrno.s | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libsrc/common/maperrno.s b/libsrc/common/maperrno.s index 869acac6f..0133b4606 100644 --- a/libsrc/common/maperrno.s +++ b/libsrc/common/maperrno.s @@ -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 -- 2.39.5