Simplify chip pin level matching a little.

Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
Adrian Conlon
2018-10-21 19:42:20 +01:00
parent 3aa5b4bb91
commit 4bfb264380
3 changed files with 11 additions and 5 deletions
+2
View File
@@ -64,6 +64,8 @@ namespace EightBit {
static bool lowered(const PinLevel line) { return line == Low; }
static void lower(PinLevel& line) { line = Low; }
static void match(PinLevel& line, int value);
static int highNibble(const int value) { return value >> 4; }
static int lowNibble(const int value) { return value & Mask4; }