Correct test runner, to ensure LR35902 tests work correctly.

Signed-off-by: Adrian.Conlon <adrian.conlon@gmail.com>
This commit is contained in:
Adrian.Conlon 2017-08-20 23:01:49 +01:00
parent 8716035396
commit 1cf73a8aa4

View File

@ -8,7 +8,6 @@ Fuse::TestRunner::TestRunner(const Test& test, const ExpectedTestResult& expecte
m_cpu(m_bus),
m_failed(false),
m_unimplemented(false) {
m_bus.disableBootRom();
m_bus.clear();
m_cpu.initialise();
}
@ -16,6 +15,7 @@ Fuse::TestRunner::TestRunner(const Test& test, const ExpectedTestResult& expecte
//
void Fuse::TestRunner::initialise() {
m_bus.writeRegister(EightBit::Bus::BOOT_DISABLE, 1);
initialiseRegisters();
initialiseMemory();
}