mirror of
https://github.com/open-simh/simtools.git
synced 2026-05-05 15:33:31 +00:00
Fix check for JMP Rn (which is illegal).
This commit is contained in:
17
tests/test-jmp.mac
Normal file
17
tests/test-jmp.mac
Normal file
@@ -0,0 +1,17 @@
|
||||
;;;;;
|
||||
;
|
||||
; Tests the addressing modes for JMP.
|
||||
; JMP Rx is not allowed, all other modes are.
|
||||
;
|
||||
|
||||
start: jmp end
|
||||
jmp r1 ; must fail
|
||||
jmp (r1)
|
||||
jmp (r1)+
|
||||
jmp @(r1)+
|
||||
jmp -(r1)
|
||||
jmp @-(r1)
|
||||
jmp 1234(r1)
|
||||
jmp @1234(r1)
|
||||
|
||||
end:
|
||||
Reference in New Issue
Block a user