From ec4adf289f13875c112f0bf57c7520e1e050b40e Mon Sep 17 00:00:00 2001 From: MadMaurice Date: Sat, 9 Sep 2023 22:07:49 +0200 Subject: [PATCH] Fix mapping in gbdif --- misc/gbdif.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/gbdif.cpp b/misc/gbdif.cpp index 8fef7cb..5781cd8 100644 --- a/misc/gbdif.cpp +++ b/misc/gbdif.cpp @@ -46,7 +46,7 @@ int main(int argc, char** argv) BoundRegister ie_mapped(cpu.state.IE); BoundRegister if_mapped(cpu.state.IF); b.map_device(0xFFFF, 0xFFFF, &ie_mapped); - b.map_device(0xFF0F, 0xFF0F, &ie_mapped); + b.map_device(0xFF0F, 0xFF0F, &if_mapped); cpu.state.A = 0x1; cpu.state.carry = true;