- Planificant els mapejadors de memòria
- Afegits supermarioland, gargoylesquest i pokemonred per a provar diferents mapejadors
This commit is contained in:
18
sm83.cpp
18
sm83.cpp
@@ -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; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user