mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2026-03-12 10:41:58 +00:00
Use macros to define our device pins.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
@@ -5,25 +5,8 @@ EightBit::Processor::Processor(Bus& bus)
|
||||
: m_bus(bus) {
|
||||
}
|
||||
|
||||
void EightBit::Processor::lowerRESET() {
|
||||
lower(RESET());
|
||||
LoweredRESET.fire(EventArgs::empty());
|
||||
}
|
||||
|
||||
void EightBit::Processor::raiseRESET() {
|
||||
raise(RESET());
|
||||
RaisedRESET.fire(EventArgs::empty());
|
||||
}
|
||||
|
||||
void EightBit::Processor::lowerINT() {
|
||||
lower(INT());
|
||||
LoweredINT.fire(EventArgs::empty());
|
||||
}
|
||||
|
||||
void EightBit::Processor::raiseINT() {
|
||||
raise(INT());
|
||||
RaisedINT.fire(EventArgs::empty());
|
||||
}
|
||||
DEFINE_PIN_LEVEL_CHANGERS(RESET, Processor);
|
||||
DEFINE_PIN_LEVEL_CHANGERS(INT, Processor);
|
||||
|
||||
void EightBit::Processor::handleRESET() {
|
||||
raiseRESET();
|
||||
|
||||
Reference in New Issue
Block a user