This commit is contained in:
2017-09-17 10:35:55 -04:00
parent 2532bc077f
commit 8e3a8056fa
2 changed files with 10 additions and 7 deletions

View File

@@ -409,6 +409,8 @@ static int cpu_reg8_to_idx[NUM_LR35902_REGS_8] = {
[LR35902_REG_HL_DEREF] = -1,
};
uint8_t lr35902_get_reg_8(const struct lr35902_state *cpu, lr35902_regs_8 reg)
{
ASSERT(reg < NUM_LR35902_REGS_8);
@@ -421,6 +423,7 @@ void lr35902_set_reg_16(struct lr35902_state *cpu, lr35902_regs_16 reg,
{
ASSERT(reg < NUM_LR35902_REGS_16 && reg >= 0);
cpu->regs_16[cpu_reg16_to_idx[reg]] = val;
lr3
}
void lr35902_set_reg_8(struct lr35902_state *cpu, lr35902_regs_8 reg,