mirror of
https://github.com/netwide-assembler/nasm.git
synced 2024-11-21 03:14:19 +08:00
c3bfc7f643
Clean up JMP/CALL patterns so they don't disassemble quite so uglily. Fix a CALL pattern which would have incorrectly generated a (harmless) REX.W prefix. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
20 lines
357 B
NASM
20 lines
357 B
NASM
;Testname=test; Arguments=-fbin -ojmp64.bin; Files=stdout stderr jmp64.bin
|
|
|
|
bits 64
|
|
jmp rcx
|
|
jmp [rax]
|
|
jmp qword [rax]
|
|
jmp near [rax]
|
|
jmp near qword [rax]
|
|
jmp far [rax]
|
|
jmp far dword [rax]
|
|
jmp far qword [rax]
|
|
call rcx
|
|
call [rax]
|
|
call qword [rax]
|
|
call near [rax]
|
|
call near qword [rax]
|
|
call far [rax]
|
|
call far dword [rax]
|
|
call far qword [rax]
|