diff options
| author | Joe Soroka <gits@joesoroka.com> | 2011-01-21 01:35:28 -0800 |
|---|---|---|
| committer | Joe Soroka <gits@joesoroka.com> | 2011-01-21 01:35:28 -0800 |
| commit | 2047f88334f3547b2579e368448ec6c81fd02a83 (patch) | |
| tree | 1f149cde7528738830b6f56cf0a56109b9d3e855 | |
| parent | f43fafc68071ff646a5f1b0f21f0641e5cd085fa (diff) | |
| download | tinycc-2047f88334f3547b2579e368448ec6c81fd02a83.tar.gz tinycc-2047f88334f3547b2579e368448ec6c81fd02a83.tar.bz2 | |
i386-asm: accept retl as a synonym for ret
| -rw-r--r-- | i386-asm.h | 2 | ||||
| -rw-r--r-- | tests/asmtest.S | 2 |
2 files changed, 4 insertions, 0 deletions
@@ -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)) diff --git a/tests/asmtest.S b/tests/asmtest.S index 0ffb9e7..3b2c22a 100644 --- a/tests/asmtest.S +++ b/tests/asmtest.S @@ -210,8 +210,10 @@ jmp *0x1000 ljmp $0x100, $0x1000 ret +retl ret $10 +retl $10 lret |
