Added "bsf" and "bsr" (not encoded properly yet)

This commit is contained in:
Pierre Pronchery 2011-04-17 06:06:32 +00:00
parent c689bf5ffc
commit cae11bd51a
2 changed files with 26 additions and 0 deletions

View File

@ -182,5 +182,23 @@
{ "and", 0x83, OP1F, OP_RMW_D8+4,OP_S8, AOT_NONE },
{ "and", 0x83, OP1F, OP_RMW_DW+4,OP_S8, AOT_NONE },
{ "and", 0x83, OP1F, OP_RMW_RW+4,OP_S8, AOT_NONE },
/* ARPL */
/* FIXME implement */
/* BOUND */
/* FIXME implement */
/* BSF 0x0fbc 2 rW r/mW */
#if 1 /* FIXME doesn't work at the moment */
{ "bsf", 0x0fbc, OP2F, OP_RMW_RW_R,OP_RMW_D0_R,AOT_NONE },
{ "bsf", 0x0fbc, OP2F, OP_RMW_RW_R,OP_RMW_D8_R,AOT_NONE },
{ "bsf", 0x0fbc, OP2F, OP_RMW_RW_R,OP_RMW_DW_R,AOT_NONE },
{ "bsf", 0x0fbc, OP2F, OP_RMW_RW_R,OP_RMW_RW_R,AOT_NONE },
#endif
/* BSR 0x0fbd 2 rW r/mW */
#if 1 /* FIXME doesn't work at the moment */
{ "bsr", 0x0fbd, OP2F, OP_RMW_RW_R,OP_RMW_D0_R,AOT_NONE },
{ "bsr", 0x0fbd, OP2F, OP_RMW_RW_R,OP_RMW_D8_R,AOT_NONE },
{ "bsr", 0x0fbd, OP2F, OP_RMW_RW_R,OP_RMW_DW_R,AOT_NONE },
{ "bsr", 0x0fbd, OP2F, OP_RMW_RW_R,OP_RMW_RW_R,AOT_NONE },
#endif
/* NOP */
{ "nop", 0x90, OP1F, AOT_NONE, AOT_NONE, AOT_NONE },

View File

@ -46,5 +46,13 @@
add %ecx, $0x45464748 /* 81 c1 45 46 47 48 */
/* AND */
and %ecx, $0x45464748 /* 81 e1 45 46 47 48 */
/* BSF */
#if 1 /* FIXME doesn't work at the moment */
bsf %eax, [%eax] /* 0f bc */
#endif
/* BSR */
#if 1 /* FIXME doesn't work at the moment */
bsr %eax, [%eax] /* 0f bd */
#endif
/* NOP */
nop