Still adding instructions to the i386 architecture

This commit is contained in:
Pierre Pronchery 2011-04-17 07:13:08 +00:00
parent 42844556a3
commit 8fa2c99d09
2 changed files with 17 additions and 9 deletions

View File

@ -250,7 +250,7 @@
{ "bts", 0x0fba, OP2F, OP_RMW_RW+5,OP_S8, AOT_NONE }, { "bts", 0x0fba, OP2F, OP_RMW_RW+5,OP_S8, AOT_NONE },
/* CALL */ /* CALL */
/* FIXME implement */ /* FIXME implement */
#if defined(ARCH_i386_real) /* i386 in real mode */ #if defined(ARCH_i386_real)
/* CBW 0x98 1 */ /* CBW 0x98 1 */
{ "cbw", 0x98, OP1F, AOT_NONE, AOT_NONE, AOT_NONE }, { "cbw", 0x98, OP1F, AOT_NONE, AOT_NONE, AOT_NONE },
#else #else
@ -267,5 +267,18 @@
{ "clts", 0x0f06, OP2F, AOT_NONE, AOT_NONE, AOT_NONE }, { "clts", 0x0f06, OP2F, AOT_NONE, AOT_NONE, AOT_NONE },
/* CMC 0xf5 1 */ /* CMC 0xf5 1 */
{ "cmc", 0xf5, OP1F, AOT_NONE, AOT_NONE, AOT_NONE }, { "cmc", 0xf5, OP1F, AOT_NONE, AOT_NONE, AOT_NONE },
/* CMOVcc */
/* FIXME implement */
/* CMP */
/* FIXME implement */
/* CPUID 0x0fa2 2 */
{ "cpuid", 0x0fa2, OP2F, AOT_NONE, AOT_NONE, AOT_NONE },
#if defined(ARCH_i386_real)
/* CWD 0x99 1 */
{ "cwd", 0x99, OP1F, AOT_NONE, AOT_NONE, AOT_NONE },
#else
/* CDQ 0x99 1 */
{ "cdq", 0x99, OP1F, AOT_NONE, AOT_NONE, AOT_NONE },
#endif
/* NOP */ /* NOP */
{ "nop", 0x90, OP1F, AOT_NONE, AOT_NONE, AOT_NONE }, { "nop", 0x90, OP1F, AOT_NONE, AOT_NONE, AOT_NONE },

View File

@ -74,17 +74,12 @@
bts [%eax], %ecx /* 0f ab 08 */ bts [%eax], %ecx /* 0f ab 08 */
bts %eax, $0x42 /* 0f ba e8 42 */ bts %eax, $0x42 /* 0f ba e8 42 */
bts [%eax], $0x42 /* 0f ba 28 42 */ bts [%eax], $0x42 /* 0f ba 28 42 */
/* CWDE */
cwde /* 98 */ cwde /* 98 */
/* CLC */
clc /* f8 */ clc /* f8 */
/* CLD */
cld /* fc */ cld /* fc */
/* CLI */
cli /* fa */ cli /* fa */
/* CLTS */
clts /* 0f 06 */ clts /* 0f 06 */
/* CMC */
cmc /* f5 */ cmc /* f5 */
/* NOP */ cpuid /* 0f a2 */
nop cdq /* 0x99 */
nop /* 0x90 */