inc.c File Reference

#include <stdint.h>
#include "emu/emu_cpu.h"
#include "emu/emu_cpu_data.h"
#include "emu/emu_memory.h"
Include dependency graph for inc.c:

Defines

#define INSTR_CALC(bits, a)
#define INSTR_SET_FLAG_OF(cpu, bits)
#define INSTR_CALC_AND_SET_FLAGS(bits, cpu, a)

Functions

int32_t instr_inc_4x (struct emu_cpu *c, struct emu_cpu_instruction *i)
int32_t instr_group_4_fe_inc (struct emu_cpu *c, struct emu_cpu_instruction *i)
int32_t instr_group_5_ff_inc (struct emu_cpu *c, struct emu_cpu_instruction *i)

Define Documentation

#define INSTR_CALC ( bits,
 ) 
Value:
UINTOF(bits) operand_a = a;                                                             \
UINTOF(bits) operation_result = operand_a+1;                            \
a = operation_result;
#define INSTR_CALC_AND_SET_FLAGS ( bits,
cpu,
 ) 
Value:
#define INSTR_SET_FLAG_OF ( cpu,
bits   ) 
Value:
{                                                                                                                                                               \
        int64_t sz = (INTOF(bits))operand_a;                                            \
                                                                                                                                                                \
        sz++;                                                                                                                                   \
                                                                                                                                                                \
        if (sz < max_inttype_borders[sizeof(operation_result)][0][0] || sz > max_inttype_borders[sizeof(operation_result)][0][1] \
        || sz != (INTOF(bits))operation_result )                                                                            \
        {                                                                           \
                CPU_FLAG_SET(cpu, f_of);                                                \
        }else                                                                       \
        {                                                                           \
                CPU_FLAG_UNSET(cpu, f_of);                                              \
        }                                                                           \
}

Function Documentation

int32_t instr_group_4_fe_inc ( struct emu_cpu c,
struct emu_cpu_instruction i 
)
int32_t instr_group_5_ff_inc ( struct emu_cpu c,
struct emu_cpu_instruction i 
)
int32_t instr_inc_4x ( struct emu_cpu c,
struct emu_cpu_instruction i 
)

Generated on Sun Jan 9 16:50:13 2011 for libemu by  doxygen 1.6.1