mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2026-04-20 10:16:48 +00:00
Add R/W pins to the MC6809 and MOS6502 processors. Hoping it'll ease peripheral development.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
+3
-7
@@ -68,13 +68,9 @@ namespace EightBit {
|
||||
static constexpr auto lowered(const PinLevel line) { return line == PinLevel::Low; }
|
||||
static void lower(PinLevel& line) noexcept { line = PinLevel::Low; }
|
||||
|
||||
static void match(PinLevel& line, int condition) {
|
||||
match(line, condition != 0);
|
||||
}
|
||||
|
||||
static void match(PinLevel& line, bool condition) {
|
||||
condition ? raise(line) : lower(line);
|
||||
}
|
||||
static void match(PinLevel& line, int condition) { match(line, condition != 0); }
|
||||
static void match(PinLevel& line, bool condition) { condition ? raise(line) : lower(line); }
|
||||
static void match(PinLevel& out, PinLevel in) { out = in; }
|
||||
|
||||
virtual ~Device() {};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user