From b258333a717acdcee560d5ee651b4e53cd936ba5 Mon Sep 17 00:00:00 2001 From: cuz Date: Sun, 4 Nov 2001 19:38:35 +0000 Subject: [PATCH] Fixed a bug git-svn-id: svn://svn.cc65.org/cc65/trunk@1096 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- libsrc/runtime/sub.s | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.5