From: cuz Date: Sun, 4 Nov 2001 19:38:35 +0000 (+0000) Subject: Fixed a bug X-Git-Tag: V2.12.0~2507 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b258333a717acdcee560d5ee651b4e53cd936ba5;p=cc65 Fixed a bug git-svn-id: svn://svn.cc65.org/cc65/trunk@1096 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/libsrc/runtime/sub.s b/libsrc/runtime/sub.s index 1cefd9ac7..cb7ae6de7 100644 --- a/libsrc/runtime/sub.s +++ b/libsrc/runtime/sub.s @@ -18,14 +18,14 @@ tossubax: sta ptr1 stx ptr1+1 .ifpc02 - lda (sp),y ; Get lo byte + lda (sp) ; Get lo byte ldy #1 ; Hi index .else ldy #0 lda (sp),y ; Lo byte iny ; Hi index .endif - sec + sec sbc ptr1 sta ptr1 ; save lo byte lda (sp),y