From: cuz Date: Wed, 8 Oct 2003 21:09:24 +0000 (+0000) Subject: Squeezed a few bytes out of the code X-Git-Tag: V2.12.0~1293 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5cc79eaf150b99f65bd49c0c61261a1c69cf0751;p=cc65 Squeezed a few bytes out of the code git-svn-id: svn://svn.cc65.org/cc65/trunk@2480 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- 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