0
0
mirror of https://github.com/netwide-assembler/nasm.git synced 2025-11-08 23:27:15 -05:00

insns.dat: correct the handling of RET instructions with prefixes

NASM would throw a warning on some valid prefixed RET instructions,
e.g. "o32 ret" instead of "retd" in 16-bit mode.  Correct that.

Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
This commit is contained in:
H. Peter Anvin (Intel)
2025-10-15 22:44:23 -07:00
parent 4709cfe493
commit e19c989bd5

View File

@@ -333,12 +333,12 @@ $wd CALL imm16:imm#|far [ji: o# 9a i# iw] 8086,OSIZE,AR1,NOLONG,ND
; This is an intentional "programmer friendliness" quirk. ; This is an intentional "programmer friendliness" quirk.
$wdq CALL mem#|far [m: o# ff /3] 8086,OSIZE,NWSIZE,(w:NOLONG) $wdq CALL mem#|far [m: o# ff /3] 8086,OSIZE,NWSIZE,(w:NOLONG)
$zwdq RET% void [ nw o# c3] 8086,BND,(d:NOLONG) $zwdq RET% void [ nw od# c3] 8086,BND,(d:NOLONG)
$zwdq RET% imm16 [i: nw o# c2 iw] 8086,BND,(d:NOLONG) $zwdq RET% imm16 [i: nw od# c2 iw] 8086,BND,(d:NOLONG)
$zwdq RETF% void [ od# cb] 8086 $zwdq RETF% void [ od# cb] 8086
$zwdq RETF% imm16 [i: od# ca iw] 8086 $zwdq RETF% imm16 [i: od# ca iw] 8086
$zwdq RETN% void [ nw o# c3] 8086,BND,ND,(d:NOLONG) $zwdq RETN% void [ nw od# c3] 8086,BND,ND,(d:NOLONG)
$zwdq RETN% imm16 [i: nw o# c2 iw] 8086,BND,ND,(d:NOLONG) $zwdq RETN% imm16 [i: nw od# c2 iw] 8086,BND,ND,(d:NOLONG)
;# Interrupts, system calls, and returns ;# Interrupts, system calls, and returns
INT imm8 [i: cd ib,u] 8086 INT imm8 [i: cd ib,u] 8086