From 314984aae459cb548e37945aab89d3cb92f67bd2 Mon Sep 17 00:00:00 2001 From: cpg Date: Mon, 23 Nov 2009 21:21:49 +0000 Subject: [PATCH] save 3 bytes, patch by Daniel Serpell git-svn-id: svn://svn.cc65.org/cc65/trunk@4476 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- libsrc/atari/open.s | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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 -- 2.39.5