The following program will demonstrate the use of the three branch instructions: BRZ, BRP and BRA.
Running the program: INPUT a number and the program will OUTPUT a sequence of numbers, starting at 1 and finishing with the INPUT number. The program will continue until a 0 is entered.
start LDA zero
loopTop LDA count
endLoop BRA . . .
This content is restricted to subscribers