aboutsummaryrefslogtreecommitdiff
path: root/i386-asm.h
diff options
context:
space:
mode:
authorgrischka <grischka>2009-11-14 20:05:22 +0100
committergrischka <grischka>2009-11-14 20:05:22 +0100
commit0a3bcb57f6260124656d88899dcca520f2023c09 (patch)
tree3ed8499c2c3516f5ee9c0f8ebb3a49a9fdb4590a /i386-asm.h
parentc15e37edad604bdaa6fe7b21d031ccea162b2bad (diff)
downloadtinycc-0a3bcb57f6260124656d88899dcca520f2023c09.tar.gz
tinycc-0a3bcb57f6260124656d88899dcca520f2023c09.tar.bz2
fix 32bit asm
The new 16bit code was causing wrong 0x66 prefixes in 32bit code. The fix possibly breaks the feature on 16bit asm.
Diffstat (limited to 'i386-asm.h')
-rw-r--r--i386-asm.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/i386-asm.h b/i386-asm.h
index 034cfad..dfcaac8 100644
--- a/i386-asm.h
+++ b/i386-asm.h
@@ -74,8 +74,12 @@ ALT(DEF_ASM_OP2(btcw, 0x0fbb, 0, OPC_MODRM | OPC_WL, OPT_REGW, OPT_REGW | OPT_EA
ALT(DEF_ASM_OP2(btcw, 0x0fba, 7, OPC_MODRM | OPC_WL, OPT_IM8, OPT_REGW | OPT_EA))
/* prefixes */
+ DEF_ASM_OP0(addr16, 0x67)
DEF_ASM_OP0(a32, 0x67)
+
+ DEF_ASM_OP0(data16, 0x66)
DEF_ASM_OP0(o32, 0x66)
+
DEF_ASM_OP0(lock, 0xf0)
DEF_ASM_OP0(rep, 0xf3)
DEF_ASM_OP0(repe, 0xf3)