mul.c File Reference

#include <stdint.h>
#include <errno.h>
#include <string.h>
#include "emu/emu.h"
#include "emu/emu_cpu.h"
#include "emu/emu_cpu_data.h"
#include "emu/emu_cpu_stack.h"
#include "emu/emu_memory.h"
Include dependency graph for mul.c:

Defines

#define INSTR_CALC(inbits, outbits, cpu, a, b)
#define INSTR_SET_FLAGS(cpu, upper_result)

Functions

int32_t instr_group_3_f6_mul (struct emu_cpu *c, struct emu_cpu_instruction *i)
int32_t instr_group_3_f7_mul (struct emu_cpu *c, struct emu_cpu_instruction *i)

Define Documentation

#define INSTR_CALC ( inbits,
outbits,
cpu,
a,
 ) 
Value:
UINTOF(inbits) operand_a = a; \
UINTOF(inbits) operand_b = b; \
UINTOF(outbits) operation_result = operand_a * operand_b; \
#define INSTR_SET_FLAGS ( cpu,
upper_result   ) 
Value:
if (upper_result == 0) \
{ \
        CPU_FLAG_UNSET(cpu,f_cf); \
        CPU_FLAG_UNSET(cpu,f_of); \
} \
else \
{ \
        CPU_FLAG_SET(cpu,f_cf); \
        CPU_FLAG_SET(cpu,f_of); \
}

Function Documentation

int32_t instr_group_3_f6_mul ( struct emu_cpu c,
struct emu_cpu_instruction i 
)
int32_t instr_group_3_f7_mul ( struct emu_cpu c,
struct emu_cpu_instruction i 
)

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