History

i386-asm: accept retl as a synonym for ret

Joe Soroka committed 15 years ago

Commit 2047f881 parent f43fafc2 files · +4 −0Browse files

Unified · Split

2 files
  1. i386-asm.h +2 −0
  2. tests/asmtest.S +2 −0
i386-asm.h+2−0
@@ -220,6 +220,8 @@ ALT(DEF_ASM_OP1(seto, 0x0f90, 0, OPC_MODRM | OPC_TEST, OPT_REG8 | OPT_EA)) · 219 unmodified lines
220220 DEF_ASM_OP2(enter, 0xc8, 0, 0, OPT_IM16, OPT_IM8)
221221 DEF_ASM_OP0(leave, 0xc9)
222222 DEF_ASM_OP0(ret, 0xc3)
223+ DEF_ASM_OP0(retl,0xc3)
224+ALT(DEF_ASM_OP1(retl,0xc2, 0, 0, OPT_IM16))
223225 ALT(DEF_ASM_OP1(ret, 0xc2, 0, 0, OPT_IM16))
224226 DEF_ASM_OP0(lret, 0xcb)
225227 ALT(DEF_ASM_OP1(lret, 0xca, 0, 0, OPT_IM16))
tests/asmtest.S+2−0
@@ -210,8 +210,10 @@ jmp *0x1000 · 209 unmodified lines
210210 ljmp $0x100, $0x1000
211211
212212 ret
213+retl
213214
214215 ret $10
216+retl $10
215217
216218 lret
217219

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t