From 00135b3d2ae2b6428b7296af0137be8e92f917c6 Mon Sep 17 00:00:00 2001 From: Rob McMullen Date: Tue, 25 Jul 2017 16:30:48 -0700 Subject: [PATCH] Moved debug random test to debug.s --- debug.s | 17 +++++++++++++++++ rand.s | 19 ------------------- 2 files changed, 17 insertions(+), 19 deletions(-) diff --git a/debug.s b/debug.s index dfc91e2..4e5a48c 100644 --- a/debug.s +++ b/debug.s @@ -271,3 +271,20 @@ debug_player nop ; jsr debughex rts + + +rand_test ldx #0 +?1 jsr get_rand_byte + sta $2000,x + inx + bne ?1 +?2 jsr get_rand_spacing + sta $2100,x + inx + bne ?2 +?3 jsr get_rand_col + sta $2200,x + inx + bne ?3 + + brk diff --git a/rand.s b/rand.s index f53cb5c..cd03908 100644 --- a/rand.s +++ b/rand.s @@ -1,23 +1,4 @@ -; defines - -rand_test ldx #0 -?1 jsr get_rand_byte - sta $2000,x - inx - bne ?1 -?2 jsr get_rand_spacing - sta $2100,x - inx - bne ?2 -?3 jsr get_rand_col - sta $2200,x - inx - bne ?3 - - brk - - randval8 .byte $ff ; return random.randint(3, 5)