From: cpg Date: Mon, 23 Nov 2009 21:21:49 +0000 (+0000) Subject: save 3 bytes, patch by Daniel Serpell X-Git-Tag: V2.13.1~53 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=314984aae459cb548e37945aab89d3cb92f67bd2;p=cc65 save 3 bytes, patch by Daniel Serpell git-svn-id: svn://svn.cc65.org/cc65/trunk@4476 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/libsrc/atari/open.s b/libsrc/atari/open.s index ea3ae543b..927c1953c 100644 --- a/libsrc/atari/open.s +++ b/libsrc/atari/open.s @@ -27,12 +27,11 @@ .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