Correct keypad interrupt generation.

Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
Adrian Conlon 2017-09-30 16:24:25 +01:00
parent 66b870bb78
commit e5e6d02845

View File

@ -99,7 +99,7 @@ namespace EightBit {
DisplayControlStatus = Processor::Bit1, // LCDC Status DisplayControlStatus = Processor::Bit1, // LCDC Status
TimerOverflow = Processor::Bit2, // Timer Overflow TimerOverflow = Processor::Bit2, // Timer Overflow
SerialTransfer = Processor::Bit3, // Serial Transfer 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 { enum LcdcControl {
@ -330,7 +330,7 @@ namespace EightBit {
} }
void triggerKeypadInterrupt() { void triggerKeypadInterrupt() {
//triggerInterrupt(Interrupts::KeypadPressed); triggerInterrupt(Interrupts::KeypadPressed);
} }
void Bus_WrittenByte(uint16_t address); void Bus_WrittenByte(uint16_t address);