From 5cc79eaf150b99f65bd49c0c61261a1c69cf0751 Mon Sep 17 00:00:00 2001 From: cuz Date: Wed, 8 Oct 2003 21:09:24 +0000 Subject: [PATCH] Squeezed a few bytes out of the code git-svn-id: svn://svn.cc65.org/cc65/trunk@2480 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- libsrc/runtime/incsp2.s | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/libsrc/runtime/incsp2.s b/libsrc/runtime/incsp2.s index 9893bebdc..deb298631 100644 --- a/libsrc/runtime/incsp2.s +++ b/libsrc/runtime/incsp2.s @@ -14,7 +14,7 @@ ldy #1 lda (sp),y ; get hi byte tax ; into x -.ifpc02 +.ifpc02 lda (sp) ; get lo byte .else dey @@ -27,18 +27,15 @@ .proc incsp2 - ldy sp ; 3 - iny ; 2 - beq @L1 ; 2 - iny ; 2 - beq @L2 ; 2 - sty sp ; 3 - rts - -@L1: iny ; 2 -@L2: sty sp ; 3 - inc sp+1 ; 5 - rts + inc sp ; 5 + beq @L1 ; 2 + inc sp ; 5 + beq @L2 ; 2 + rts + +@L1: inc sp ; 5 +@L2: inc sp+1 ; 5 + rts .endproc -- 2.39.5