mirror of
https://github.com/rzzzwilson/pymlac.git
synced 2025-06-10 09:32:41 +00:00
23 lines
332 B
NASM
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
|