mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2025-08-13 12:24:58 +00:00
Add interrupt signal generation.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
@@ -122,10 +122,13 @@ namespace EightBit {
|
||||
|
||||
Bus();
|
||||
|
||||
Signal<int> InterruptGenerated;
|
||||
|
||||
void reset();
|
||||
|
||||
void triggerInterrupt(int cause) {
|
||||
pokeRegister(IF, peekRegister(IF) | cause);
|
||||
InterruptGenerated.fire(cause);
|
||||
}
|
||||
|
||||
void writeRegister(int offset, uint8_t content) {
|
||||
|
Reference in New Issue
Block a user