#include <sys/types.h>#include <sys/param.h>#include <stdint.h>#include "emu/emu_cpu.h"#include "emu/emu_cpu_data.h"#include "emu/emu_memory.h"
Defines | |
| #define | INSTR_CALC(bits, a, b, operation) |
| #define | INSTR_CALC_AND_SET_FLAGS(bits, cpu, a, b, operation) |
Functions | |
| int32_t | instr_cmp_38 (struct emu_cpu *c, struct emu_cpu_instruction *i) |
| int32_t | instr_cmp_39 (struct emu_cpu *c, struct emu_cpu_instruction *i) |
| int32_t | instr_cmp_3a (struct emu_cpu *c, struct emu_cpu_instruction *i) |
| int32_t | instr_cmp_3b (struct emu_cpu *c, struct emu_cpu_instruction *i) |
| int32_t | instr_cmp_3c (struct emu_cpu *c, struct emu_cpu_instruction *i) |
| int32_t | instr_cmp_3d (struct emu_cpu *c, struct emu_cpu_instruction *i) |
| int32_t | instr_group_1_80_cmp (struct emu_cpu *c, struct emu_cpu_instruction *i) |
| int32_t | instr_group_1_81_cmp (struct emu_cpu *c, struct emu_cpu_instruction *i) |
| int32_t | instr_group_1_83_cmp (struct emu_cpu *c, struct emu_cpu_instruction *i) |
| #define INSTR_CALC | ( | bits, | |||
| a, | |||||
| b, | |||||
| operation | ) |
| #define INSTR_CALC_AND_SET_FLAGS | ( | bits, | |||
| cpu, | |||||
| a, | |||||
| b, | |||||
| operation | ) |
INSTR_CALC(bits, a, b, operation) \ INSTR_SET_FLAG_ZF(cpu) \ INSTR_SET_FLAG_PF(cpu) \ INSTR_SET_FLAG_SF(cpu) \ INSTR_SET_FLAG_CF(cpu, operation) \ INSTR_SET_FLAG_OF(cpu, operation, bits)
| int32_t instr_cmp_38 | ( | struct emu_cpu * | c, | |
| struct emu_cpu_instruction * | i | |||
| ) |
| int32_t instr_cmp_39 | ( | struct emu_cpu * | c, | |
| struct emu_cpu_instruction * | i | |||
| ) |
| int32_t instr_cmp_3a | ( | struct emu_cpu * | c, | |
| struct emu_cpu_instruction * | i | |||
| ) |
| int32_t instr_cmp_3b | ( | struct emu_cpu * | c, | |
| struct emu_cpu_instruction * | i | |||
| ) |
| int32_t instr_cmp_3c | ( | struct emu_cpu * | c, | |
| struct emu_cpu_instruction * | i | |||
| ) |
References al, emu_cpu_instruction::imm8, INSTR_CALC_AND_SET_FLAGS, and emu_cpu::reg8.
| int32_t instr_cmp_3d | ( | struct emu_cpu * | c, | |
| struct emu_cpu_instruction * | i | |||
| ) |
| int32_t instr_group_1_80_cmp | ( | struct emu_cpu * | c, | |
| struct emu_cpu_instruction * | i | |||
| ) |
| int32_t instr_group_1_81_cmp | ( | struct emu_cpu * | c, | |
| struct emu_cpu_instruction * | i | |||
| ) |
References emu_cpu_instruction::ea, emu_cpu_instruction::imm, emu_cpu_instruction::imm16, INSTR_CALC_AND_SET_FLAGS, MEM_DWORD_READ, MEM_WORD_READ, emu_cpu_instruction::mod, emu_cpu_instruction::modrm, PREFIX_OPSIZE, emu_cpu_instruction::prefixes, emu_cpu::reg, emu_cpu::reg16, and emu_cpu_instruction::rm.
Referenced by instr_group_1_81().
| int32_t instr_group_1_83_cmp | ( | struct emu_cpu * | c, | |
| struct emu_cpu_instruction * | i | |||
| ) |
References emu_cpu_instruction::ea, emu_cpu_instruction::imm8, INSTR_CALC_AND_SET_FLAGS, MEM_DWORD_READ, MEM_WORD_READ, emu_cpu_instruction::mod, emu_cpu_instruction::modrm, PREFIX_OPSIZE, emu_cpu_instruction::prefixes, emu_cpu::reg, emu_cpu::reg16, and emu_cpu_instruction::rm.
Referenced by instr_group_1_83().
1.6.1