From: uz Date: Thu, 30 Dec 2010 19:05:33 +0000 (+0000) Subject: Bug fixes by Karri Kaksonen. X-Git-Tag: V2.13.3~563 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=38ebc6618d4701719f64dbd402773901bc7b7510;p=cc65 Bug fixes by Karri Kaksonen. git-svn-id: svn://svn.cc65.org/cc65/trunk@4893 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/libsrc/lynx/lseek.s b/libsrc/lynx/lseek.s index 1d9d93b24..27f7d4af7 100644 --- a/libsrc/lynx/lseek.s +++ b/libsrc/lynx/lseek.s @@ -41,7 +41,6 @@ jsr pusheax lda #<(__BLOCKSIZE__-1) ldx #>(__BLOCKSIZE__-1) - jsr decax1 jsr axlong jsr tosandeax eor #$FF diff --git a/libsrc/lynx/open.s b/libsrc/lynx/open.s index 9e22f62a5..f4d0471b0 100644 --- a/libsrc/lynx/open.s +++ b/libsrc/lynx/open.s @@ -63,15 +63,13 @@ parmok: jsr popax beq flagsok cmp #(O_WRONLY | O_CREAT) beq flagsok + jsr popax lda #EINVAL - ldx #0 jmp __directerrno flagsok: jsr popax jsr _atoi - jsr pushax - jsr ldax0sp jsr _openn ldx #$00 lda #$01