1
0
mirror of https://github.com/rzzzwilson/pymlac.git synced 2025-06-10 09:32:41 +00:00
rzzzwilson.pymlac/iasm/jumptest.asm
2022-01-02 20:11:11 +11:00

20 lines
388 B
NASM
Executable File

; test some jump instructions
org 0100 ;
;
jmp .+2 ; pc-relative
hlt 00 ; shouldn't get here
jmp j ; to label
hlt 01 ; shouldn't get here
j jmp *l ; indirect
hlt 02 ; shouldn't get here
l data 0200 ; indirect target
;
org 0200 ;
jmp l0300 ; jump to label in another block
hlt 03 ; shouldn't get here
;
org 0300 ;
l0300 hlt ; should stop here
;
end