mirror of
https://github.com/Pecusx/Young-lumberjack.git
synced 2026-05-20 22:33:54 +02:00
More branches
This commit is contained in:
+8
-8
@@ -840,15 +840,15 @@ next_phase_only
|
||||
mva branches_list+2 branches_list+3
|
||||
mva branches_list+1 branches_list+2
|
||||
mva branches_list+0 branches_list+1
|
||||
beq make_random_branch
|
||||
lda #0
|
||||
beq branch_ready
|
||||
make_random_branch
|
||||
lda RANDOM ; 0, 1 or 2
|
||||
and #%00000011
|
||||
cmp #3
|
||||
bne branch_ready
|
||||
lda #0
|
||||
lda RANDOM ; branch or not (50%)
|
||||
and #%00000001
|
||||
beq branch_ready ; no branches
|
||||
lda RANDOM ; left or right (50%)
|
||||
and #%00000001
|
||||
tax
|
||||
inx
|
||||
txa
|
||||
branch_ready
|
||||
sta branches_list+0
|
||||
rts
|
||||
|
||||
Reference in New Issue
Block a user