From 1a4eac69039731f68310fe17326051e7b1a40881 Mon Sep 17 00:00:00 2001 From: Piotr Wiszowaty Date: Wed, 22 Oct 2014 22:42:50 +0200 Subject: [PATCH] Fix return stack reading in words: i j --- foco65 | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/foco65 b/foco65 index 418009f..654b247 100755 --- a/foco65 +++ b/foco65 @@ -1761,10 +1761,14 @@ plus_loop_end txa tay tsx - lda $100+3,x ; index:hi + inx + inx + inx + lda $100,x ; index:hi dey sta pstack,y - lda $100+4,x ; index:lo + inx + lda $100,x ; index:lo dey sta pstack,y tya @@ -1777,10 +1781,18 @@ plus_loop_end txa tay tsx - lda $100+7,x ; index:hi + inx + inx + inx + inx + inx + inx + inx + lda $100,x ; index:hi dey sta pstack,y - lda $100+8,x ; index:lo + inx + lda $100,x ; index:lo dey sta pstack,y tya