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

23 lines
332 B
NASM

;;;;;;;;;;;;;;;;;;;;;;;;;
; test the JMP instruction
;;;;;;;;;;;;;;;;;;;;;;;;;
org 00100
; check simple JMP
jmp jtest ;
hlt ;
jtest nop ;
; now test jump backwards
jmp j1 ;
j0 jmp j2 ;
hlt ;
j1 jmp j0 ;
hlt ;
j2 nop ;
; now test indirect JMP
jmp *indjmp ;
hlt ;
target hlt ;
; data for test
indjmp data target ;
end