i386-asm: accept retl as a synonym for ret

This commit is contained in:
Joe Soroka 2011-01-21 01:35:28 -08:00
parent f43fafc680
commit 2047f88334
2 changed files with 4 additions and 0 deletions

View File

@ -220,6 +220,8 @@ ALT(DEF_ASM_OP1(seto, 0x0f90, 0, OPC_MODRM | OPC_TEST, OPT_REG8 | OPT_EA))
DEF_ASM_OP2(enter, 0xc8, 0, 0, OPT_IM16, OPT_IM8)
DEF_ASM_OP0(leave, 0xc9)
DEF_ASM_OP0(ret, 0xc3)
DEF_ASM_OP0(retl,0xc3)
ALT(DEF_ASM_OP1(retl,0xc2, 0, 0, OPT_IM16))
ALT(DEF_ASM_OP1(ret, 0xc2, 0, 0, OPT_IM16))
DEF_ASM_OP0(lret, 0xcb)
ALT(DEF_ASM_OP1(lret, 0xca, 0, 0, OPT_IM16))

View File

@ -210,8 +210,10 @@ jmp *0x1000
ljmp $0x100, $0x1000
ret
retl
ret $10
retl $10
lret