Refactor the MBC implementation to allow a single point of definition.

Signed-off-by: Adrian.Conlon <adrian.conlon@gmail.com>
This commit is contained in:
Adrian.Conlon
2017-08-24 10:28:31 +01:00
parent da96454185
commit 448ee2f09f
5 changed files with 24 additions and 26 deletions

View File

@ -44,7 +44,7 @@ namespace EightBit {
static int promoteNibble(int value) { return value << 4; }
static int demoteNibble(int value) { return highNibble(value); }
const Memory& getMemory() const { return m_memory; }
Memory& getMemory() { return m_memory; }
register16_t& PC() { return pc; }