From e5e6d02845efba69129458c007b931a9b8e3c11e Mon Sep 17 00:00:00 2001 From: Adrian Conlon Date: Sat, 30 Sep 2017 16:24:25 +0100 Subject: [PATCH] Correct keypad interrupt generation. Signed-off-by: Adrian Conlon --- LR35902/inc/GameBoyBus.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LR35902/inc/GameBoyBus.h b/LR35902/inc/GameBoyBus.h index 8af9fd3..4d7f39c 100644 --- a/LR35902/inc/GameBoyBus.h +++ b/LR35902/inc/GameBoyBus.h @@ -99,7 +99,7 @@ namespace EightBit { DisplayControlStatus = Processor::Bit1, // LCDC Status TimerOverflow = Processor::Bit2, // Timer Overflow SerialTransfer = Processor::Bit3, // Serial Transfer - KeypadPressed = Processor::Bit3 // Hi-Lo transition of P10-P13 + KeypadPressed = Processor::Bit4 // Hi-Lo transition of P10-P13 }; enum LcdcControl { @@ -330,7 +330,7 @@ namespace EightBit { } void triggerKeypadInterrupt() { - //triggerInterrupt(Interrupts::KeypadPressed); + triggerInterrupt(Interrupts::KeypadPressed); } void Bus_WrittenByte(uint16_t address);