]> git.sur5r.net Git - cc65/commitdiff
save 3 bytes, patch by Daniel Serpell
authorcpg <cpg@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Mon, 23 Nov 2009 21:21:49 +0000 (21:21 +0000)
committercpg <cpg@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Mon, 23 Nov 2009 21:21:49 +0000 (21:21 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@4476 b7a2c559-68d2-44c3-8de9-860c34a00d81

libsrc/atari/open.s

index ea3ae543bb3213d49c4d38bb5fcacc74fac2872a..927c1953c24cac1da8a55c20dbf0f74f5fa79e2e 100644 (file)
 
 .proc  _open
 
-       cpy     #4              ; correct # of arguments (bytes)?
+       dey                     ; parm count < 4 shouldn't be needed to be checked
+       dey                     ;       (it generates a c compiler warning)
+       dey
+       dey
        beq     parmok          ; parameter count ok
-       tya                     ; parm count < 4 shouldn't be needed to be checked
-       sec                     ;       (it generates a c compiler warning)
-       sbc     #4
-       tay
        jsr     addysp          ; fix stack, throw away unused parameters
 
 parmok:        jsr     findfreeiocb