Go to the source code of this file.
Data Structures | |
struct | I32_reg_t |
struct | I16_reg_t |
struct | I8_reg_t |
union | i386_general_register |
struct | i386_general_regs |
struct | i386_special_regs |
struct | i386_segment_regs |
struct | X86EMU_regs |
struct | X86EMU_sysEnv |
Defines | |
#define | R_AH gen.A.I8_reg.h_reg |
#define | R_AL gen.A.I8_reg.l_reg |
#define | R_BH gen.B.I8_reg.h_reg |
#define | R_BL gen.B.I8_reg.l_reg |
#define | R_CH gen.C.I8_reg.h_reg |
#define | R_CL gen.C.I8_reg.l_reg |
#define | R_DH gen.D.I8_reg.h_reg |
#define | R_DL gen.D.I8_reg.l_reg |
#define | R_AX gen.A.I16_reg.x_reg |
#define | R_BX gen.B.I16_reg.x_reg |
#define | R_CX gen.C.I16_reg.x_reg |
#define | R_DX gen.D.I16_reg.x_reg |
#define | R_EAX gen.A.I32_reg.e_reg |
#define | R_EBX gen.B.I32_reg.e_reg |
#define | R_ECX gen.C.I32_reg.e_reg |
#define | R_EDX gen.D.I32_reg.e_reg |
#define | R_SP spc.SP.I16_reg.x_reg |
#define | R_BP spc.BP.I16_reg.x_reg |
#define | R_SI spc.SI.I16_reg.x_reg |
#define | R_DI spc.DI.I16_reg.x_reg |
#define | R_IP spc.IP.I16_reg.x_reg |
#define | R_FLG spc.FLAGS |
#define | R_SP spc.SP.I16_reg.x_reg |
#define | R_BP spc.BP.I16_reg.x_reg |
#define | R_SI spc.SI.I16_reg.x_reg |
#define | R_DI spc.DI.I16_reg.x_reg |
#define | R_IP spc.IP.I16_reg.x_reg |
#define | R_FLG spc.FLAGS |
#define | R_ESP spc.SP.I32_reg.e_reg |
#define | R_EBP spc.BP.I32_reg.e_reg |
#define | R_ESI spc.SI.I32_reg.e_reg |
#define | R_EDI spc.DI.I32_reg.e_reg |
#define | R_EIP spc.IP.I32_reg.e_reg |
#define | R_EFLG spc.FLAGS |
#define | R_CS seg.CS |
#define | R_DS seg.DS |
#define | R_SS seg.SS |
#define | R_ES seg.ES |
#define | R_FS seg.FS |
#define | R_GS seg.GS |
#define | FB_CF 0x0001 |
#define | FB_PF 0x0004 |
#define | FB_AF 0x0010 |
#define | FB_ZF 0x0040 |
#define | FB_SF 0x0080 |
#define | FB_TF 0x0100 |
#define | FB_IF 0x0200 |
#define | FB_DF 0x0400 |
#define | FB_OF 0x0800 |
#define | F_ALWAYS_ON (0x0002) |
#define | F_MSK (FB_CF|FB_PF|FB_AF|FB_ZF|FB_SF|FB_TF|FB_IF|FB_DF|FB_OF) |
#define | F_CF 0x0001 |
#define | F_PF 0x0004 |
#define | F_AF 0x0010 |
#define | F_ZF 0x0040 |
#define | F_SF 0x0080 |
#define | F_TF 0x0100 |
#define | F_IF 0x0200 |
#define | F_DF 0x0400 |
#define | F_OF 0x0800 |
#define | TOGGLE_FLAG(flag) (M.x86.R_FLG ^= (flag)) |
#define | SET_FLAG(flag) (M.x86.R_FLG |= (flag)) |
#define | CLEAR_FLAG(flag) (M.x86.R_FLG &= ~(flag)) |
#define | ACCESS_FLAG(flag) (M.x86.R_FLG & (flag)) |
#define | CLEARALL_FLAG(m) (M.x86.R_FLG = 0) |
#define | CONDITIONAL_SET_FLAG(COND, FLAG) if (COND) SET_FLAG(FLAG); else CLEAR_FLAG(FLAG) |
#define | F_PF_CALC 0x010000 |
#define | F_ZF_CALC 0x020000 |
#define | F_SF_CALC 0x040000 |
#define | F_ALL_CALC 0xff0000 |
#define | SYSMODE_SEG_DS_SS 0x00000001 |
#define | SYSMODE_SEGOVR_CS 0x00000002 |
#define | SYSMODE_SEGOVR_DS 0x00000004 |
#define | SYSMODE_SEGOVR_ES 0x00000008 |
#define | SYSMODE_SEGOVR_FS 0x00000010 |
#define | SYSMODE_SEGOVR_GS 0x00000020 |
#define | SYSMODE_SEGOVR_SS 0x00000040 |
#define | SYSMODE_PREFIX_REPE 0x00000080 |
#define | SYSMODE_PREFIX_REPNE 0x00000100 |
#define | SYSMODE_PREFIX_DATA 0x00000200 |
#define | SYSMODE_PREFIX_ADDR 0x00000400 |
#define | SYSMODE_INTR_PENDING 0x10000000 |
#define | SYSMODE_EXTRN_INTR 0x20000000 |
#define | SYSMODE_HALTED 0x40000000 |
#define | SYSMODE_SEGMASK |
#define | SYSMODE_CLRMASK |
#define | INTR_SYNCH 0x1 |
#define | INTR_ASYNCH 0x2 |
#define | INTR_HALTED 0x4 |
#define | M _X86EMU_env |
Typedefs | |
typedef struct i386_general_regs | Gen_reg_t |
Functions | |
void | printk (const char *fmt,...) |
Variables | |
X86EMU_sysEnv | _X86EMU_env |
#define ACCESS_FLAG | ( | flag | ) | (M.x86.R_FLG & (flag)) |
Referenced by aaa_word(), aas_word(), adc_byte(), adc_long(), adc_word(), daa_byte(), das_byte(), ins(), outs(), rcl_byte(), rcl_long(), rcl_word(), rcr_byte(), rcr_long(), rcr_word(), sbb_byte(), sbb_long(), sbb_word(), shl_byte(), shl_long(), shl_word(), shld_long(), shld_word(), x86emu_dump_regs(), x86emu_dump_xregs(), X86EMU_exec(), x86emuOp2_long_jump(), x86emuOp2_set_byte(), x86emuOp_cmps_byte(), x86emuOp_cmps_word(), x86emuOp_into(), x86emuOp_jump_near_B(), x86emuOp_jump_near_BE(), x86emuOp_jump_near_L(), x86emuOp_jump_near_LE(), x86emuOp_jump_near_NB(), x86emuOp_jump_near_NBE(), x86emuOp_jump_near_NL(), x86emuOp_jump_near_NLE(), x86emuOp_jump_near_NO(), x86emuOp_jump_near_NP(), x86emuOp_jump_near_NS(), x86emuOp_jump_near_NZ(), x86emuOp_jump_near_O(), x86emuOp_jump_near_P(), x86emuOp_jump_near_S(), x86emuOp_jump_near_Z(), x86emuOp_lods_byte(), x86emuOp_lods_word(), x86emuOp_loope(), x86emuOp_loopne(), x86emuOp_movs_byte(), x86emuOp_movs_word(), x86emuOp_scas_byte(), x86emuOp_scas_word(), x86emuOp_stos_byte(), and x86emuOp_stos_word().
#define CLEAR_FLAG | ( | flag | ) | (M.x86.R_FLG &= ~(flag)) |
Referenced by aaa_word(), aad_word(), aam_word(), aas_word(), and_byte(), and_long(), and_word(), cmp_byte(), div_long(), div_word(), idiv_long(), idiv_word(), imul_byte(), imul_long(), imul_word(), mul_byte(), mul_long(), mul_word(), or_byte(), or_long(), or_word(), sar_byte(), sar_long(), sar_word(), shl_byte(), shl_long(), shl_word(), shld_long(), shld_word(), shr_byte(), shr_long(), shr_word(), shrd_long(), shrd_word(), test_byte(), test_long(), test_word(), x86emu_intr_handle(), X86EMU_prepareForInt(), x86emuOp2_imul_R_RM(), x86emuOp_clc(), x86emuOp_cld(), x86emuOp_cli(), x86emuOp_imul_byte_IMM(), x86emuOp_imul_word_IMM(), x86emuOp_int3(), x86emuOp_int_IMM(), x86emuOp_into(), xor_byte(), xor_long(), and xor_word().
#define CLEARALL_FLAG | ( | m | ) | (M.x86.R_FLG = 0) |
#define CONDITIONAL_SET_FLAG | ( | COND, | |||
FLAG | ) | if (COND) SET_FLAG(FLAG); else CLEAR_FLAG(FLAG) |
Referenced by aaa_word(), aad_word(), aam_word(), aas_word(), adc_byte(), adc_long(), adc_word(), add_byte(), add_long(), add_word(), and_byte(), and_long(), and_word(), cmp_byte(), cmp_long(), cmp_word(), daa_byte(), das_byte(), dec_byte(), dec_long(), dec_word(), div_long(), div_word(), idiv_long(), idiv_word(), inc_byte(), inc_long(), inc_word(), neg_byte(), neg_long(), neg_word(), or_byte(), or_long(), or_word(), rcl_byte(), rcl_long(), rcl_word(), rcr_byte(), rcr_long(), rcr_word(), rol_byte(), rol_long(), rol_word(), ror_byte(), ror_long(), ror_word(), sar_byte(), sar_long(), sar_word(), sbb_byte(), sbb_long(), sbb_word(), shl_byte(), shl_long(), shl_word(), shld_long(), shld_word(), shr_byte(), shr_long(), shr_word(), shrd_long(), shrd_word(), sub_byte(), sub_long(), sub_word(), test_byte(), test_long(), test_word(), x86emuOp2_bsf(), x86emuOp2_bsr(), x86emuOp2_bt_R(), x86emuOp2_btc_R(), x86emuOp2_btr_R(), x86emuOp2_btX_I(), xor_byte(), xor_long(), and xor_word().
#define F_AF 0x0010 |
Referenced by aaa_word(), aad_word(), aam_word(), aas_word(), adc_byte(), adc_long(), adc_word(), add_byte(), add_long(), add_word(), and_byte(), and_long(), and_word(), cmp_byte(), cmp_long(), cmp_word(), daa_byte(), das_byte(), dec_byte(), dec_long(), dec_word(), div_long(), idiv_long(), inc_byte(), inc_long(), inc_word(), neg_byte(), neg_long(), neg_word(), or_byte(), or_long(), or_word(), print_flags(), sbb_byte(), sbb_long(), sbb_word(), sub_byte(), sub_long(), sub_word(), x86emu_dump_regs(), x86emu_dump_xregs(), xor_byte(), xor_long(), and xor_word().
#define F_ALL_CALC 0xff0000 |
#define F_ALWAYS_ON (0x0002) |
Referenced by x86emuOp_pushf_word().
#define F_CF 0x0001 |
Referenced by aaa_word(), aad_word(), aam_word(), aas_word(), adc_byte(), adc_long(), adc_word(), add_byte(), add_long(), add_word(), and_byte(), and_long(), and_word(), cmp_byte(), cmp_long(), cmp_word(), daa_byte(), das_byte(), div_long(), div_word(), idiv_long(), idiv_word(), imul_byte(), imul_long(), imul_word(), mul_byte(), mul_long(), mul_word(), neg_byte(), neg_long(), neg_word(), or_byte(), or_long(), or_word(), print_flags(), rcl_byte(), rcl_long(), rcl_word(), rcr_byte(), rcr_long(), rcr_word(), rol_byte(), rol_long(), rol_word(), ror_byte(), ror_long(), ror_word(), sar_byte(), sar_long(), sar_word(), sbb_byte(), sbb_long(), sbb_word(), shl_byte(), shl_long(), shl_word(), shld_long(), shld_word(), shr_byte(), shr_long(), shr_word(), shrd_long(), shrd_word(), sub_byte(), sub_long(), sub_word(), test_byte(), test_long(), test_word(), x86emu_dump_regs(), x86emu_dump_xregs(), x86emuOp2_bt_R(), x86emuOp2_btc_R(), x86emuOp2_btr_R(), x86emuOp2_btX_I(), x86emuOp2_imul_R_RM(), x86emuOp2_long_jump(), x86emuOp2_set_byte(), x86emuOp_clc(), x86emuOp_cmc(), x86emuOp_imul_byte_IMM(), x86emuOp_imul_word_IMM(), x86emuOp_jump_near_B(), x86emuOp_jump_near_BE(), x86emuOp_jump_near_NB(), x86emuOp_jump_near_NBE(), x86emuOp_stc(), xor_byte(), xor_long(), and xor_word().
#define F_DF 0x0400 |
Referenced by ins(), outs(), x86emu_dump_regs(), x86emu_dump_xregs(), x86emuOp_cld(), x86emuOp_cmps_byte(), x86emuOp_cmps_word(), x86emuOp_lods_byte(), x86emuOp_lods_word(), x86emuOp_movs_byte(), x86emuOp_movs_word(), x86emuOp_scas_byte(), x86emuOp_scas_word(), x86emuOp_std(), x86emuOp_stos_byte(), and x86emuOp_stos_word().
#define F_IF 0x0200 |
#define F_MSK (FB_CF|FB_PF|FB_AF|FB_ZF|FB_SF|FB_TF|FB_IF|FB_DF|FB_OF) |
Referenced by x86emuOp_pushf_word().
#define F_OF 0x0800 |
Referenced by aad_word(), aam_word(), adc_byte(), adc_long(), adc_word(), add_byte(), add_long(), add_word(), and_byte(), and_long(), and_word(), cmp_byte(), cmp_long(), cmp_word(), dec_byte(), dec_long(), dec_word(), imul_byte(), imul_long(), imul_word(), inc_byte(), inc_long(), inc_word(), mul_byte(), mul_long(), mul_word(), neg_byte(), neg_long(), neg_word(), or_byte(), or_long(), or_word(), print_flags(), rcl_byte(), rcl_long(), rcl_word(), rcr_byte(), rcr_long(), rcr_word(), rol_byte(), rol_long(), rol_word(), ror_byte(), ror_long(), ror_word(), sbb_byte(), sbb_long(), sbb_word(), shl_byte(), shl_long(), shl_word(), shld_long(), shld_word(), shr_byte(), shr_long(), shr_word(), shrd_long(), shrd_word(), sub_byte(), sub_long(), sub_word(), test_byte(), test_long(), test_word(), x86emu_dump_regs(), x86emu_dump_xregs(), x86emuOp2_imul_R_RM(), x86emuOp2_long_jump(), x86emuOp2_set_byte(), x86emuOp_imul_byte_IMM(), x86emuOp_imul_word_IMM(), x86emuOp_into(), x86emuOp_jump_near_L(), x86emuOp_jump_near_LE(), x86emuOp_jump_near_NL(), x86emuOp_jump_near_NLE(), x86emuOp_jump_near_NO(), x86emuOp_jump_near_O(), xor_byte(), xor_long(), and xor_word().
#define F_PF 0x0004 |
Referenced by aaa_word(), aad_word(), aam_word(), aas_word(), adc_byte(), adc_long(), adc_word(), add_byte(), add_long(), add_word(), and_byte(), and_long(), and_word(), cmp_byte(), cmp_long(), cmp_word(), daa_byte(), das_byte(), dec_byte(), dec_long(), dec_word(), div_long(), div_word(), idiv_long(), idiv_word(), inc_byte(), inc_long(), inc_word(), neg_byte(), neg_long(), neg_word(), or_byte(), or_long(), or_word(), print_flags(), sar_byte(), sar_long(), sar_word(), sbb_byte(), sbb_long(), sbb_word(), shl_byte(), shl_long(), shl_word(), shld_long(), shld_word(), shr_byte(), shr_long(), shr_word(), shrd_long(), shrd_word(), sub_byte(), sub_long(), sub_word(), test_byte(), test_long(), test_word(), x86emu_dump_regs(), x86emu_dump_xregs(), x86emuOp2_long_jump(), x86emuOp2_set_byte(), x86emuOp_jump_near_NP(), x86emuOp_jump_near_P(), xor_byte(), xor_long(), and xor_word().
#define F_PF_CALC 0x010000 |
#define F_SF 0x0080 |
Referenced by aaa_word(), aad_word(), aam_word(), aas_word(), adc_byte(), adc_long(), adc_word(), add_byte(), add_long(), add_word(), and_byte(), and_long(), and_word(), cmp_byte(), cmp_long(), cmp_word(), daa_byte(), das_byte(), dec_byte(), dec_long(), dec_word(), div_long(), div_word(), idiv_long(), idiv_word(), inc_byte(), inc_long(), inc_word(), neg_byte(), neg_long(), neg_word(), or_byte(), or_long(), or_word(), print_flags(), sar_byte(), sar_long(), sar_word(), sbb_byte(), sbb_long(), sbb_word(), shl_byte(), shl_long(), shl_word(), shld_long(), shld_word(), shr_byte(), shr_long(), shr_word(), shrd_long(), shrd_word(), sub_byte(), sub_long(), sub_word(), test_byte(), test_long(), test_word(), x86emu_dump_regs(), x86emu_dump_xregs(), x86emuOp2_long_jump(), x86emuOp2_set_byte(), x86emuOp_jump_near_L(), x86emuOp_jump_near_LE(), x86emuOp_jump_near_NL(), x86emuOp_jump_near_NLE(), x86emuOp_jump_near_NS(), x86emuOp_jump_near_S(), xor_byte(), xor_long(), and xor_word().
#define F_SF_CALC 0x040000 |
#define F_TF 0x0100 |
Referenced by x86emu_intr_handle(), X86EMU_prepareForInt(), x86emuOp_int3(), x86emuOp_int_IMM(), and x86emuOp_into().
#define F_ZF 0x0040 |
Referenced by aaa_word(), aad_word(), aam_word(), aas_word(), adc_byte(), adc_long(), adc_word(), add_byte(), add_long(), add_word(), and_byte(), and_long(), and_word(), cmp_byte(), cmp_long(), cmp_word(), daa_byte(), das_byte(), dec_byte(), dec_long(), dec_word(), div_long(), div_word(), idiv_long(), idiv_word(), inc_byte(), inc_long(), inc_word(), neg_byte(), neg_long(), neg_word(), or_byte(), or_long(), or_word(), print_flags(), sar_byte(), sar_long(), sar_word(), sbb_byte(), sbb_long(), sbb_word(), shl_byte(), shl_long(), shl_word(), shld_long(), shld_word(), shr_byte(), shr_long(), shr_word(), shrd_long(), shrd_word(), sub_byte(), sub_long(), sub_word(), test_byte(), test_long(), test_word(), x86emu_dump_regs(), x86emu_dump_xregs(), x86emuOp2_bsf(), x86emuOp2_bsr(), x86emuOp2_long_jump(), x86emuOp2_set_byte(), x86emuOp_cmps_byte(), x86emuOp_cmps_word(), x86emuOp_jump_near_BE(), x86emuOp_jump_near_LE(), x86emuOp_jump_near_NBE(), x86emuOp_jump_near_NLE(), x86emuOp_jump_near_NZ(), x86emuOp_jump_near_Z(), x86emuOp_loope(), x86emuOp_loopne(), x86emuOp_scas_byte(), x86emuOp_scas_word(), xor_byte(), xor_long(), and xor_word().
#define F_ZF_CALC 0x020000 |
#define FB_AF 0x0010 |
#define FB_CF 0x0001 |
#define FB_DF 0x0400 |
#define FB_IF 0x0200 |
#define FB_OF 0x0800 |
#define FB_PF 0x0004 |
#define FB_SF 0x0080 |
#define FB_TF 0x0100 |
#define FB_ZF 0x0040 |
#define INTR_ASYNCH 0x2 |
#define INTR_HALTED 0x4 |
Referenced by do_int(), X86EMU_exec(), and X86EMU_halt_sys().
#define INTR_SYNCH 0x1 |
Referenced by X86EMU_exec(), x86emu_intr_handle(), and x86emu_intr_raise().
#define M _X86EMU_env |
Referenced by deb_inb(), deb_inl(), deb_inw(), deb_outb(), deb_outl(), deb_outw(), decode_rm00_address(), decode_rm01_address(), decode_rm10_address(), decode_rm_byte_register(), decode_rm_long_register(), decode_rm_seg_register(), decode_rm_word_register(), decode_sib_address(), div_byte(), div_long(), div_word(), do_int(), emu_vm86(), fetch_byte_imm(), fetch_decode_modrm(), fetch_long_imm(), fetch_word_imm(), get_data_segment(), idiv_byte(), idiv_long(), idiv_word(), imul_byte(), imul_long(), imul_word(), ins(), main(), mul_byte(), mul_long(), mul_word(), outs(), pop_long(), pop_word(), push_long(), push_word(), rdb(), rdl(), rdw(), wrb(), wrl(), wrw(), x86emu_dump_regs(), x86emu_dump_xregs(), X86EMU_exec(), X86EMU_halt_sys(), x86emu_intr_handle(), x86emu_intr_raise(), X86EMU_prepareForInt(), x86emuOp2_bsf(), x86emuOp2_bsr(), x86emuOp2_bt_R(), x86emuOp2_btc_R(), x86emuOp2_btr_R(), x86emuOp2_btX_I(), x86emuOp2_illegal_op(), x86emuOp2_imul_R_RM(), x86emuOp2_lfs_R_IMM(), x86emuOp2_lgs_R_IMM(), x86emuOp2_long_jump(), x86emuOp2_lss_R_IMM(), x86emuOp2_movsx_byte_R_RM(), x86emuOp2_movzx_byte_R_RM(), x86emuOp2_pop_FS(), x86emuOp2_pop_GS(), x86emuOp2_push_FS(), x86emuOp2_push_GS(), x86emuOp2_shld_CL(), x86emuOp2_shld_IMM(), x86emuOp2_shrd_CL(), x86emuOp2_shrd_IMM(), x86emuOp_aaa(), x86emuOp_aad(), x86emuOp_aam(), x86emuOp_aas(), x86emuOp_adc_byte_AL_IMM(), x86emuOp_adc_word_AX_IMM(), x86emuOp_adc_word_R_RM(), x86emuOp_adc_word_RM_R(), x86emuOp_add_byte_AL_IMM(), x86emuOp_add_word_AX_IMM(), x86emuOp_add_word_R_RM(), x86emuOp_add_word_RM_R(), x86emuOp_and_byte_AL_IMM(), x86emuOp_and_word_AX_IMM(), x86emuOp_and_word_R_RM(), x86emuOp_and_word_RM_R(), x86emuOp_call_far_IMM(), x86emuOp_call_near_IMM(), x86emuOp_cbw(), x86emuOp_cmp_byte_AL_IMM(), x86emuOp_cmp_word_AX_IMM(), x86emuOp_cmp_word_R_RM(), x86emuOp_cmp_word_RM_R(), x86emuOp_cmps_byte(), x86emuOp_cmps_word(), x86emuOp_cwd(), x86emuOp_daa(), x86emuOp_das(), x86emuOp_dec_AX(), x86emuOp_dec_BP(), x86emuOp_dec_BX(), x86emuOp_dec_CX(), x86emuOp_dec_DI(), x86emuOp_dec_DX(), x86emuOp_dec_SI(), x86emuOp_dec_SP(), x86emuOp_enter(), x86emuOp_illegal_op(), x86emuOp_imul_byte_IMM(), x86emuOp_imul_word_IMM(), x86emuOp_in_byte_AL_DX(), x86emuOp_in_byte_AL_IMM(), x86emuOp_in_word_AX_DX(), x86emuOp_in_word_AX_IMM(), x86emuOp_inc_AX(), x86emuOp_inc_BP(), x86emuOp_inc_BX(), x86emuOp_inc_CX(), x86emuOp_inc_DI(), x86emuOp_inc_DX(), x86emuOp_inc_SI(), x86emuOp_inc_SP(), x86emuOp_ins_word(), x86emuOp_int3(), x86emuOp_int_IMM(), x86emuOp_into(), x86emuOp_iret(), x86emuOp_jcxz(), x86emuOp_jump_byte_IMM(), x86emuOp_jump_far_IMM(), x86emuOp_jump_near_B(), x86emuOp_jump_near_BE(), x86emuOp_jump_near_IMM(), x86emuOp_jump_near_L(), x86emuOp_jump_near_LE(), x86emuOp_jump_near_NB(), x86emuOp_jump_near_NBE(), x86emuOp_jump_near_NL(), x86emuOp_jump_near_NLE(), x86emuOp_jump_near_NO(), x86emuOp_jump_near_NP(), x86emuOp_jump_near_NS(), x86emuOp_jump_near_NZ(), x86emuOp_jump_near_O(), x86emuOp_jump_near_P(), x86emuOp_jump_near_S(), x86emuOp_jump_near_Z(), x86emuOp_lahf(), x86emuOp_lds_R_IMM(), x86emuOp_leave(), x86emuOp_les_R_IMM(), x86emuOp_lods_byte(), x86emuOp_lods_word(), x86emuOp_loop(), x86emuOp_loope(), x86emuOp_loopne(), x86emuOp_mov_AL_M_IMM(), x86emuOp_mov_AX_M_IMM(), x86emuOp_mov_byte_AH_IMM(), x86emuOp_mov_byte_AL_IMM(), x86emuOp_mov_byte_BH_IMM(), x86emuOp_mov_byte_BL_IMM(), x86emuOp_mov_byte_CH_IMM(), x86emuOp_mov_byte_CL_IMM(), x86emuOp_mov_byte_DH_IMM(), x86emuOp_mov_byte_DL_IMM(), x86emuOp_mov_M_AL_IMM(), x86emuOp_mov_M_AX_IMM(), x86emuOp_mov_word_AX_IMM(), x86emuOp_mov_word_BP_IMM(), x86emuOp_mov_word_BX_IMM(), x86emuOp_mov_word_CX_IMM(), x86emuOp_mov_word_DI_IMM(), x86emuOp_mov_word_DX_IMM(), x86emuOp_mov_word_R_RM(), x86emuOp_mov_word_RM_IMM(), x86emuOp_mov_word_RM_R(), x86emuOp_mov_word_SI_IMM(), x86emuOp_mov_word_SP_IMM(), x86emuOp_movs_byte(), x86emuOp_movs_word(), x86emuOp_opc81_word_RM_IMM(), x86emuOp_opc83_word_RM_IMM(), x86emuOp_opcC1_word_RM_MEM(), x86emuOp_opcD1_word_RM_1(), x86emuOp_opcD2_byte_RM_CL(), x86emuOp_opcD3_word_RM_CL(), x86emuOp_opcF7_word_RM(), x86emuOp_opcFF_word_RM(), x86emuOp_or_byte_AL_IMM(), x86emuOp_or_word_AX_IMM(), x86emuOp_or_word_R_RM(), x86emuOp_or_word_RM_R(), x86emuOp_out_byte_DX_AL(), x86emuOp_out_byte_IMM_AL(), x86emuOp_out_word_DX_AX(), x86emuOp_out_word_IMM_AX(), x86emuOp_outs_word(), x86emuOp_pop_all(), x86emuOp_pop_AX(), x86emuOp_pop_BP(), x86emuOp_pop_BX(), x86emuOp_pop_CX(), x86emuOp_pop_DI(), x86emuOp_pop_DS(), x86emuOp_pop_DX(), x86emuOp_pop_ES(), x86emuOp_pop_RM(), x86emuOp_pop_SI(), x86emuOp_pop_SP(), x86emuOp_pop_SS(), x86emuOp_popf_word(), x86emuOp_prefix_addr(), x86emuOp_prefix_data(), x86emuOp_push_all(), x86emuOp_push_AX(), x86emuOp_push_BP(), x86emuOp_push_BX(), x86emuOp_push_byte_IMM(), x86emuOp_push_CS(), x86emuOp_push_CX(), x86emuOp_push_DI(), x86emuOp_push_DS(), x86emuOp_push_DX(), x86emuOp_push_ES(), x86emuOp_push_SI(), x86emuOp_push_SP(), x86emuOp_push_SS(), x86emuOp_push_word_IMM(), x86emuOp_pushf_word(), x86emuOp_repe(), x86emuOp_repne(), x86emuOp_ret_far(), x86emuOp_ret_far_IMM(), x86emuOp_ret_near(), x86emuOp_ret_near_IMM(), x86emuOp_sahf(), x86emuOp_sbb_byte_AL_IMM(), x86emuOp_sbb_word_AX_IMM(), x86emuOp_sbb_word_R_RM(), x86emuOp_sbb_word_RM_R(), x86emuOp_scas_byte(), x86emuOp_scas_word(), x86emuOp_segovr_CS(), x86emuOp_segovr_DS(), x86emuOp_segovr_ES(), x86emuOp_segovr_FS(), x86emuOp_segovr_GS(), x86emuOp_segovr_SS(), x86emuOp_stos_byte(), x86emuOp_stos_word(), x86emuOp_sub_byte_AL_IMM(), x86emuOp_sub_word_AX_IMM(), x86emuOp_sub_word_R_RM(), x86emuOp_sub_word_RM_R(), x86emuOp_test_AL_IMM(), x86emuOp_test_AX_IMM(), x86emuOp_test_word_RM_R(), x86emuOp_two_byte(), x86emuOp_xchg_word_AX_BP(), x86emuOp_xchg_word_AX_BX(), x86emuOp_xchg_word_AX_CX(), x86emuOp_xchg_word_AX_DI(), x86emuOp_xchg_word_AX_DX(), x86emuOp_xchg_word_AX_SI(), x86emuOp_xchg_word_AX_SP(), x86emuOp_xchg_word_RM_R(), x86emuOp_xlat(), x86emuOp_xor_byte_AL_IMM(), x86emuOp_xor_word_AX_IMM(), x86emuOp_xor_word_R_RM(), and x86emuOp_xor_word_RM_R().
#define R_AH gen.A.I8_reg.h_reg |
#define R_AL gen.A.I8_reg.l_reg |
#define R_AX gen.A.I16_reg.x_reg |
#define R_BH gen.B.I8_reg.h_reg |
#define R_BL gen.B.I8_reg.l_reg |
#define R_BP spc.BP.I16_reg.x_reg |
#define R_BP spc.BP.I16_reg.x_reg |
#define R_BX gen.B.I16_reg.x_reg |
#define R_CH gen.C.I8_reg.h_reg |
#define R_CL gen.C.I8_reg.l_reg |
#define R_CS seg.CS |
#define R_CX gen.C.I16_reg.x_reg |
#define R_DH gen.D.I8_reg.h_reg |
#define R_DI spc.DI.I16_reg.x_reg |
#define R_DI spc.DI.I16_reg.x_reg |
#define R_DL gen.D.I8_reg.l_reg |
#define R_DS seg.DS |
#define R_DX gen.D.I16_reg.x_reg |
#define R_EAX gen.A.I32_reg.e_reg |
#define R_EBP spc.BP.I32_reg.e_reg |
#define R_EBX gen.B.I32_reg.e_reg |
#define R_ECX gen.C.I32_reg.e_reg |
#define R_EDI spc.DI.I32_reg.e_reg |
#define R_EDX gen.D.I32_reg.e_reg |
#define R_EFLG spc.FLAGS |
#define R_EIP spc.IP.I32_reg.e_reg |
#define R_ES seg.ES |
#define R_ESI spc.SI.I32_reg.e_reg |
#define R_ESP spc.SP.I32_reg.e_reg |
#define R_FLG spc.FLAGS |
#define R_FLG spc.FLAGS |
#define R_FS seg.FS |
#define R_GS seg.GS |
#define R_IP spc.IP.I16_reg.x_reg |
#define R_IP spc.IP.I16_reg.x_reg |
#define R_SI spc.SI.I16_reg.x_reg |
#define R_SI spc.SI.I16_reg.x_reg |
#define R_SP spc.SP.I16_reg.x_reg |
#define R_SP spc.SP.I16_reg.x_reg |
#define R_SS seg.SS |
#define SET_FLAG | ( | flag | ) | (M.x86.R_FLG |= (flag)) |
Referenced by aaa_word(), aas_word(), daa_byte(), das_byte(), div_long(), idiv_long(), imul_byte(), imul_long(), imul_word(), mul_byte(), mul_long(), mul_word(), sar_byte(), sar_long(), sar_word(), shl_byte(), shl_long(), shl_word(), shld_long(), shld_word(), shr_byte(), shr_long(), shr_word(), shrd_long(), shrd_word(), x86emuOp2_imul_R_RM(), x86emuOp_imul_byte_IMM(), x86emuOp_imul_word_IMM(), x86emuOp_stc(), x86emuOp_std(), and x86emuOp_sti().
#define SYSMODE_CLRMASK |
Value:
(SYSMODE_SEG_DS_SS | \ SYSMODE_SEGOVR_CS | \ SYSMODE_SEGOVR_DS | \ SYSMODE_SEGOVR_ES | \ SYSMODE_SEGOVR_FS | \ SYSMODE_SEGOVR_GS | \ SYSMODE_SEGOVR_SS | \ SYSMODE_PREFIX_DATA | \ SYSMODE_PREFIX_ADDR)
#define SYSMODE_EXTRN_INTR 0x20000000 |
#define SYSMODE_HALTED 0x40000000 |
#define SYSMODE_INTR_PENDING 0x10000000 |
#define SYSMODE_PREFIX_ADDR 0x00000400 |
Referenced by decode_rm00_address(), decode_rm01_address(), decode_rm10_address(), and x86emuOp_prefix_addr().
#define SYSMODE_PREFIX_DATA 0x00000200 |
Referenced by ins(), outs(), x86emuOp2_bsf(), x86emuOp2_bsr(), x86emuOp2_bt_R(), x86emuOp2_btc_R(), x86emuOp2_btr_R(), x86emuOp2_btX_I(), x86emuOp2_imul_R_RM(), x86emuOp2_movsx_byte_R_RM(), x86emuOp2_movzx_byte_R_RM(), x86emuOp2_shld_CL(), x86emuOp2_shld_IMM(), x86emuOp2_shrd_CL(), x86emuOp2_shrd_IMM(), x86emuOp_adc_word_AX_IMM(), x86emuOp_adc_word_R_RM(), x86emuOp_adc_word_RM_R(), x86emuOp_add_word_AX_IMM(), x86emuOp_add_word_R_RM(), x86emuOp_add_word_RM_R(), x86emuOp_and_word_AX_IMM(), x86emuOp_and_word_R_RM(), x86emuOp_and_word_RM_R(), x86emuOp_cbw(), x86emuOp_cmp_word_AX_IMM(), x86emuOp_cmp_word_R_RM(), x86emuOp_cmp_word_RM_R(), x86emuOp_cmps_word(), x86emuOp_cwd(), x86emuOp_dec_AX(), x86emuOp_dec_BP(), x86emuOp_dec_BX(), x86emuOp_dec_CX(), x86emuOp_dec_DI(), x86emuOp_dec_DX(), x86emuOp_dec_SI(), x86emuOp_dec_SP(), x86emuOp_imul_byte_IMM(), x86emuOp_imul_word_IMM(), x86emuOp_in_word_AX_DX(), x86emuOp_in_word_AX_IMM(), x86emuOp_inc_AX(), x86emuOp_inc_BP(), x86emuOp_inc_BX(), x86emuOp_inc_CX(), x86emuOp_inc_DI(), x86emuOp_inc_DX(), x86emuOp_inc_SI(), x86emuOp_inc_SP(), x86emuOp_ins_word(), x86emuOp_lods_word(), x86emuOp_mov_AX_M_IMM(), x86emuOp_mov_M_AX_IMM(), x86emuOp_mov_word_AX_IMM(), x86emuOp_mov_word_BP_IMM(), x86emuOp_mov_word_BX_IMM(), x86emuOp_mov_word_CX_IMM(), x86emuOp_mov_word_DI_IMM(), x86emuOp_mov_word_DX_IMM(), x86emuOp_mov_word_R_RM(), x86emuOp_mov_word_RM_IMM(), x86emuOp_mov_word_RM_R(), x86emuOp_mov_word_SI_IMM(), x86emuOp_mov_word_SP_IMM(), x86emuOp_movs_word(), x86emuOp_opc81_word_RM_IMM(), x86emuOp_opc83_word_RM_IMM(), x86emuOp_opcC1_word_RM_MEM(), x86emuOp_opcD1_word_RM_1(), x86emuOp_opcD3_word_RM_CL(), x86emuOp_opcF7_word_RM(), x86emuOp_opcFF_word_RM(), x86emuOp_or_word_AX_IMM(), x86emuOp_or_word_R_RM(), x86emuOp_or_word_RM_R(), x86emuOp_out_word_DX_AX(), x86emuOp_out_word_IMM_AX(), x86emuOp_outs_word(), x86emuOp_pop_all(), x86emuOp_pop_AX(), x86emuOp_pop_BP(), x86emuOp_pop_BX(), x86emuOp_pop_CX(), x86emuOp_pop_DI(), x86emuOp_pop_DX(), x86emuOp_pop_RM(), x86emuOp_pop_SI(), x86emuOp_pop_SP(), x86emuOp_popf_word(), x86emuOp_prefix_data(), x86emuOp_push_all(), x86emuOp_push_AX(), x86emuOp_push_BP(), x86emuOp_push_BX(), x86emuOp_push_byte_IMM(), x86emuOp_push_CX(), x86emuOp_push_DI(), x86emuOp_push_DX(), x86emuOp_push_SI(), x86emuOp_push_SP(), x86emuOp_push_word_IMM(), x86emuOp_pushf_word(), x86emuOp_sbb_word_AX_IMM(), x86emuOp_sbb_word_R_RM(), x86emuOp_sbb_word_RM_R(), x86emuOp_scas_word(), x86emuOp_stos_word(), x86emuOp_sub_word_AX_IMM(), x86emuOp_sub_word_R_RM(), x86emuOp_sub_word_RM_R(), x86emuOp_test_AX_IMM(), x86emuOp_test_word_RM_R(), x86emuOp_xchg_word_AX_BP(), x86emuOp_xchg_word_AX_BX(), x86emuOp_xchg_word_AX_CX(), x86emuOp_xchg_word_AX_DI(), x86emuOp_xchg_word_AX_DX(), x86emuOp_xchg_word_AX_SI(), x86emuOp_xchg_word_AX_SP(), x86emuOp_xchg_word_RM_R(), x86emuOp_xor_word_AX_IMM(), x86emuOp_xor_word_R_RM(), and x86emuOp_xor_word_RM_R().
#define SYSMODE_PREFIX_REPE 0x00000080 |
#define SYSMODE_PREFIX_REPNE 0x00000100 |
#define SYSMODE_SEG_DS_SS 0x00000001 |
Referenced by decode_rm00_address(), decode_rm01_address(), decode_rm10_address(), decode_sib_address(), and get_data_segment().
#define SYSMODE_SEGMASK |
Value:
(SYSMODE_SEG_DS_SS | \ SYSMODE_SEGOVR_CS | \ SYSMODE_SEGOVR_DS | \ SYSMODE_SEGOVR_ES | \ SYSMODE_SEGOVR_FS | \ SYSMODE_SEGOVR_GS | \ SYSMODE_SEGOVR_SS)
Referenced by get_data_segment().
#define SYSMODE_SEGOVR_CS 0x00000002 |
Referenced by get_data_segment(), and x86emuOp_segovr_CS().
#define SYSMODE_SEGOVR_DS 0x00000004 |
Referenced by get_data_segment(), and x86emuOp_segovr_DS().
#define SYSMODE_SEGOVR_ES 0x00000008 |
Referenced by get_data_segment(), and x86emuOp_segovr_ES().
#define SYSMODE_SEGOVR_FS 0x00000010 |
Referenced by get_data_segment(), and x86emuOp_segovr_FS().
#define SYSMODE_SEGOVR_GS 0x00000020 |
Referenced by get_data_segment(), and x86emuOp_segovr_GS().
#define SYSMODE_SEGOVR_SS 0x00000040 |
Referenced by get_data_segment(), and x86emuOp_segovr_SS().
#define TOGGLE_FLAG | ( | flag | ) | (M.x86.R_FLG ^= (flag)) |
Referenced by x86emuOp_cmc().
typedef struct i386_general_regs Gen_reg_t |
void printk | ( | const char * | fmt, | |
... | ||||
) |
Referenced by get_data_segment(), p_inb(), p_inl(), p_inw(), p_outb(), p_outl(), p_outw(), rdb(), rdl(), rdw(), wrb(), wrl(), wrw(), x86emu_dump_regs(), x86emu_dump_xregs(), X86EMU_exec(), x86emuOp2_btX_I(), x86emuOp2_illegal_op(), and x86emuOp_illegal_op().