mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2025-01-23 18:30:51 +00:00
Add interrupt signal generation.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
parent
13fed631d4
commit
88117398ef
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user