18 lines
432 B
Plaintext
18 lines
432 B
Plaintext
LoopBreakSub: PHA ;push accumulator onto stack
|
|
|
|
|
|
BreakLoop: JSR GenerateRandomNum ;routine not implemented
|
|
;generates random number and puts in memory location RandomNumber
|
|
|
|
LDA RandomNumber
|
|
JSR DisplayAccumulator ;routine not implemented
|
|
CMP #10
|
|
BEQ Break
|
|
JSR GenerateRandomNum
|
|
LDA RandomNumber
|
|
JSR DisplayAccumulator
|
|
JMP BreakLoop
|
|
|
|
Break: PLA ;restore accumulator from stack
|
|
RTS ;return from subroutine
|