cardiograph-computer/test-programs/referencing-addr-during-ass...

15 lines
224 B
NASM

;; Test referencing address of line being assembled
NOP ; Push the const below to a later address
#initAddr *ADDR
LDA *ADDR
STO $25
FHP 0 ; hop if carry set
JMP @setCarry
LDA #initAddr
END
@setCarry
FTG 0
JMP ($25)