mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-09-22 10:43:39 -04:00
JMPABS does not need .w1 and in fact is documented to NOT have or require it. Add jump-over emulation for the !APX case, similar to the jump-over for long conditional branches in < 386. Move JMP ABS patterns ahead of regular jumps; otherwise JMP ABS syntax doesn't work. Prefer JMPABS in the disassembler, since that is the documented form. Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
16 lines
154 B
NASM
16 lines
154 B
NASM
bits 64
|
|
start:
|
|
jmp [rel .next]
|
|
.next:
|
|
dq hello
|
|
|
|
align 32
|
|
jmp abs hello
|
|
jmpabs hello
|
|
jmp abs qword hello
|
|
jmpabs qword hello
|
|
|
|
align 32
|
|
hello:
|
|
nop
|