aboutsummaryrefslogtreecommitdiffstats
path: root/tictactoe.tal
diff options
context:
space:
mode:
Diffstat (limited to 'tictactoe.tal')
-rw-r--r--tictactoe.tal5
1 files changed, 2 insertions, 3 deletions
diff --git a/tictactoe.tal b/tictactoe.tal
index 14aa1ed..ad8388e 100644
--- a/tictactoe.tal
+++ b/tictactoe.tal
@@ -268,7 +268,6 @@ JMP2r
;o .Screen/addr DEO2
#03 .Screen/sprite DEO
#01 .game/current-player STZ ( very evil )
- JMP2r
JMP2r
@draw-endgame ( winstate -- )
@@ -300,10 +299,10 @@ JMP2r
@pos-to-xy ( pos -- x* y* )
#04 SFTk NIP
#03 AND
- #01 ADD #00 SWP #0010 MUL2
+ INC #00 SWP #40 SFT2
ROT
#03 AND
- #01 ADD #00 SWP #0010 MUL2
+ INC #00 SWP #40 SFT2
JMP2r
@pos-to-addr ( pos -- addr )