]> git.sur5r.net Git - cc65/commitdiff
Bug fixes by Karri Kaksonen.
authoruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 30 Dec 2010 19:05:33 +0000 (19:05 +0000)
committeruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 30 Dec 2010 19:05:33 +0000 (19:05 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@4893 b7a2c559-68d2-44c3-8de9-860c34a00d81

libsrc/lynx/lseek.s
libsrc/lynx/open.s

index 1d9d93b24a8796a2ab8add93bc0f9976391c9560..27f7d4af7aaa0f2ced739263007eaf0c03156f8a 100644 (file)
@@ -41,7 +41,6 @@
        jsr     pusheax
        lda     #<(__BLOCKSIZE__-1)
        ldx     #>(__BLOCKSIZE__-1)
-       jsr     decax1
        jsr     axlong
        jsr     tosandeax
        eor     #$FF
index 9e22f62a502459217dd3572d76571fe342801c3a..f4d0471b000a3bebedc39ea9b5b9a43d8d52d9ff 100644 (file)
@@ -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