0
0
mirror of https://github.com/netwide-assembler/nasm.git synced 2025-09-22 10:43:39 -04:00

New opcode for 32->64 bit sign-extended immediate with warning

Add a new opcode for 32->64 bit sign-extended immediate, with warning
on the number not matching.

This unfortunately calls for an audit of all the \4[0123] opcodes, if
they should be replaced by \25[4567].  This only replaces one
instruction (MOV reg64,imm32); other instructions need to be
considered.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
This commit is contained in:
H. Peter Anvin
2008-10-07 10:05:10 -07:00
parent f70fce6cc9
commit 588df78b0d
5 changed files with 28 additions and 3 deletions

View File

@@ -513,6 +513,7 @@ static int matches(const struct itemplate *t, uint8_t *data,
break;
case4(040):
case4(0254):
opx->offset = getu32(data);
data += 4;
break;