mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-08-21 20:45:30 +02:00
Fixed ei_sequence test
This commit is contained in:
@@ -1073,9 +1073,10 @@ static void ei(GB_gameboy_t *gb, uint8_t opcode)
|
||||
{
|
||||
/* ei is actually "disable interrupts for one instruction, then enable them". */
|
||||
GB_advance_cycles(gb, 4);
|
||||
gb->ime = false;
|
||||
if (!gb->ime && !gb->ime_toggle) {
|
||||
gb->ime_toggle = true;
|
||||
}
|
||||
}
|
||||
|
||||
static void ld_hl_sp_r8(GB_gameboy_t *gb, uint8_t opcode)
|
||||
{
|
||||
|
Reference in New Issue
Block a user