- Planificant els mapejadors de memòria

- Afegits supermarioland, gargoylesquest i pokemonred per a provar diferents mapejadors
This commit is contained in:
2025-01-14 17:02:07 +01:00
parent f766c40cc7
commit add6562575
7 changed files with 53 additions and 29 deletions

View File

@@ -473,6 +473,8 @@ namespace sm83
}
}
void DI();
void processInterrupts()
{
const uint8_t IF = mem::readMem(0xff0f);
@@ -679,6 +681,14 @@ namespace sm83
//if (options[Z80_OPTION_STOP_ON_INVALID]) z80debug::stop();
}
bool opcode_ignored = false;
void IgnoreOpcode()
{
t-=3;
rPC--;
opcode_ignored=true;
}
void reset()
{
mem::reset();
@@ -700,7 +710,6 @@ namespace sm83
void BIT_INSTRUCTIONS();
bool opcode_ignored = false;
uint32_t step()
{
do {
@@ -1285,13 +1294,6 @@ namespace sm83
}
}
void IgnoreOpcode()
{
t-=3;
rPC--;
opcode_ignored=true;
}
//uint8_t *getMem() { return memory; }
uint8_t *getRegs() { return regs; }