Fix the GB_run_frame API in SGB mode

This commit is contained in:
Lior Halphon 2019-01-11 21:53:21 +02:00
parent c756861822
commit 4e2b5bb336
2 changed files with 2 additions and 2 deletions

View File

@ -351,6 +351,8 @@ exit:
uint8_t GB_run(GB_gameboy_t *gb)
{
gb->vblank_just_occured = false;
if (gb->sgb && gb->sgb->intro_animation < 140) {
/* On the SGB, the GB is halted after finishing the boot ROM.
Then, after the boot animation is almost done, it's reset.

View File

@ -1356,8 +1356,6 @@ static GB_opcode_t *opcodes[256] = {
};
void GB_cpu_run(GB_gameboy_t *gb)
{
gb->vblank_just_occured = false;
if (gb->hdma_on) {
GB_advance_cycles(gb, 4);
return;