aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2014-10-09 13:32:12 -0400
committerJesse Luehrs <doy@tozt.net>2014-10-09 13:32:12 -0400
commit7b172c1c8405055b0d4a2fe4b354706d1304f008 (patch)
tree2a8c79d9fbfd4d0450cdd9cefc86f7ed9fe948cb
parent2cef3f08d11c40dfe755a98b13f1702e5a503e9a (diff)
downloadnes-snake-7b172c1c8405055b0d4a2fe4b354706d1304f008.tar.gz
nes-snake-7b172c1c8405055b0d4a2fe4b354706d1304f008.zip
if the length is 256, you win
-rw-r--r--main.s2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.s b/main.s
index f5b4e2c..b9654cd 100644
--- a/main.s
+++ b/main.s
@@ -325,6 +325,8 @@ maybe_eat_apple:
eat_apple:
LDX length
INX
+ TXA
+ BEQ collision ; for now - this is the win condition
STX length
JSR new_apple