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
220 DEF_ASM_OP2(enter, 0xc8, 0, 0, OPT_IM16, OPT_IM8)220 DEF_ASM_OP2(enter, 0xc8, 0, 0, OPT_IM16, OPT_IM8)
221 DEF_ASM_OP0(leave, 0xc9)221 DEF_ASM_OP0(leave, 0xc9)
222 DEF_ASM_OP0(ret, 0xc3)222 DEF_ASM_OP0(ret, 0xc3)
223 DEF_ASM_OP0(retl,0xc3)
224ALT(DEF_ASM_OP1(retl,0xc2, 0, 0, OPT_IM16))
223ALT(DEF_ASM_OP1(ret, 0xc2, 0, 0, OPT_IM16))225ALT(DEF_ASM_OP1(ret, 0xc2, 0, 0, OPT_IM16))
224 DEF_ASM_OP0(lret, 0xcb)226 DEF_ASM_OP0(lret, 0xcb)
225ALT(DEF_ASM_OP1(lret, 0xca, 0, 0, OPT_IM16))227ALT(DEF_ASM_OP1(lret, 0xca, 0, 0, OPT_IM16))
tests/asmtest.S+2−0
@@ -210,8 +210,10 @@ jmp *0x1000 · 209 unmodified lines
210ljmp $0x100, $0x1000210ljmp $0x100, $0x1000
211 211
212ret212ret
213retl
213 214
214ret $10215ret $10
216retl $10
215 217
216lret218lret
217 219

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