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