Moved debug random test to debug.s

This commit is contained in:
Rob McMullen 2017-07-25 16:30:48 -07:00
parent 38c286876e
commit 00135b3d2a
2 changed files with 17 additions and 19 deletions

17
debug.s
View File

@ -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

19
rand.s
View File

@ -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)