mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2024-12-22 09:30:32 +00:00
Use corrected LR35902 library to run test loop.
Signed-off-by: Adrian.Conlon <adrian.conlon@gmail.com>
This commit is contained in:
parent
ea033d3984
commit
daab0484c3
@ -181,12 +181,9 @@ void Fuse::TestRunner::run() {
|
||||
initialise();
|
||||
auto allowedCycles = m_test.registerState.tstates;
|
||||
try {
|
||||
auto cycles = 0;
|
||||
do {
|
||||
cycles += m_cpu.step();
|
||||
} while (allowedCycles > cycles);
|
||||
m_cpu.run(allowedCycles);
|
||||
check();
|
||||
} catch (std::logic_error& error) {
|
||||
} catch (std::logic_error& error) {
|
||||
m_unimplemented = true;
|
||||
std::cerr << "**** Error: " << error.what() << std::endl;
|
||||
}
|
||||
|
@ -69,8 +69,9 @@ namespace EightBit {
|
||||
return cycles;
|
||||
}
|
||||
|
||||
protected:
|
||||
int run(int limit);
|
||||
|
||||
protected:
|
||||
virtual int execute(uint8_t opcode);
|
||||
int step();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user