The Student Room Group

OCR computing CAT

Can some one please help me change this code so that the number of iterations can be chosen by the user.
LDA A
OUT
LDA B
OUT
FIB LDA A
LDA B
ADD A
STA C
OUT
LDA B
STA A
LDA C
STA B
LDA D
SUB E
STA D
BRP FIB
A DAT 0
B DAT 1
C DAT 0
D DAT 7
E DAT 1

Quick Reply