Try to correct "one definition rule" problems:

1) No forward declarations
2) No virtual methods defined inline.

Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
Adrian Conlon
2017-11-05 12:47:42 +00:00
parent 437cc4ce89
commit 8143f8a506
7 changed files with 72 additions and 53 deletions

View File

@@ -28,3 +28,18 @@ int EightBit::Processor::run(int limit) {
int EightBit::Processor::singleStep() {
return step();
}
uint8_t EightBit::Processor::fetchByte() {
return getByte(PC().word++);
}
void EightBit::Processor::fetchWord(register16_t& output) {
output.low = fetchByte();
output.high = fetchByte();
}
int EightBit::Processor::fetchExecute() {
if (!powered())
return 0;
return execute(fetchByte());
}