GB: Fixed RST/PUSH idle cycle timing
This commit is contained in:
parent
9305c432b4
commit
c33f1d99ea
1 changed files with 2 additions and 2 deletions
|
@ -1044,9 +1044,9 @@ void GbCpu::RETI()
|
|||
//rst n xx 16 ---- call to 00,08,10,18,20,28,30,38
|
||||
void GbCpu::RST(uint8_t value)
|
||||
{
|
||||
IncCycleCount();
|
||||
PushWord(_state.PC);
|
||||
_state.PC = value;
|
||||
IncCycleCount();
|
||||
}
|
||||
|
||||
void GbCpu::POP(Register16& reg)
|
||||
|
@ -1056,8 +1056,8 @@ void GbCpu::POP(Register16& reg)
|
|||
|
||||
void GbCpu::PUSH(Register16& reg)
|
||||
{
|
||||
PushWord(reg);
|
||||
IncCycleCount();
|
||||
PushWord(reg);
|
||||
}
|
||||
|
||||
void GbCpu::POP_AF()
|
||||
|
|
Loading…
Add table
Reference in a new issue