1
0
mirror of https://github.com/rzzzwilson/pymlac.git synced 2025-06-10 09:32:41 +00:00
Files
rzzzwilson.pymlac/iasm/jumptest.asm
2015-05-20 19:02:17 +07:00

19 lines
343 B
NASM

; test some jump instructions
org 0100 ;
;
jmp .+1 ; pc-relative
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