cmp.c File Reference

#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"
Include dependency graph for cmp.c:

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 Documentation

#define INSTR_CALC ( bits,
a,
b,
operation   ) 
Value:
UINTOF(bits) operand_a; \
UINTOF(bits) operand_b; \
bcopy(&(a), &operand_a, bits/8); \
bcopy(&(b), &operand_b, bits/8); \
UINTOF(bits) operation_result = operand_a operation operand_b;
#define INSTR_CALC_AND_SET_FLAGS ( bits,
cpu,
a,
b,
operation   ) 
Value:
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)

Function Documentation

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 
)

Generated on Sun Jan 9 16:49:59 2011 for libemu by  doxygen 1.6.1