aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2014-10-09 14:42:54 -0400
committerJesse Luehrs <doy@tozt.net>2014-10-09 14:42:54 -0400
commitd18fef977d1d29460ec08fe2b8f5d5d485b89161 (patch)
treec995f95c20e7d480d5ab4bd58e7fbd3401afb5c7
parent7b172c1c8405055b0d4a2fe4b354706d1304f008 (diff)
downloadnes-snake-d18fef977d1d29460ec08fe2b8f5d5d485b89161.tar.gz
nes-snake-d18fef977d1d29460ec08fe2b8f5d5d485b89161.zip
make sure the rng state doesn't go to 0
-rw-r--r--main.s3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.s b/main.s
index b9654cd..d873d4f 100644
--- a/main.s
+++ b/main.s
@@ -202,7 +202,8 @@ end_nmi:
; subroutines {{{
start_screen_loop: ; {{{
LDX rand_state
- INX
+- INX
+ BEQ - ; lfsr prngs have 0 as a fixed point
STX rand_state
handle_start: