diff --git a/src/dmg/GB.cpp b/src/dmg/GB.cpp index 89452e8e..7f86e579 100644 --- a/src/dmg/GB.cpp +++ b/src/dmg/GB.cpp @@ -4935,7 +4935,7 @@ void gbEmulate(int ticksToStop) if(newmask) { - gbMemory[0xff0f] |= 16; + gbMemory[0xff0f] = register_IF |= 16; }