LD, LDH, WRAM, and HRAM
This commit is contained in:
@ -30,6 +30,7 @@ typedef struct {
|
||||
bool stepping;
|
||||
|
||||
bool int_master_enabled;
|
||||
u8 ie_register;
|
||||
} cpu_context;
|
||||
|
||||
void cpu_init();
|
||||
@ -42,4 +43,11 @@ IN_PROC inst_get_processor(in_type type);
|
||||
#define CPU_FLAG_Z BIT(ctx->regs.f, 7)
|
||||
#define CPU_FLAG_C BIT(ctx->regs.f, 4)
|
||||
|
||||
u16 cpu_read_reg(reg_type rt);
|
||||
u16 cpu_read_reg(reg_type rt);
|
||||
|
||||
void cpu_set_reg(reg_type rt, u16 val);
|
||||
|
||||
void fetch_data();
|
||||
|
||||
u8 cpu_get_ie_register();
|
||||
void cpu_set_ie_register(u8 ie);
|
Reference in New Issue
Block a user