1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-07-06 01:28:57 +00:00

Tweaks test length slightly to ensure this doesn't run beyond the final line's end.

This commit is contained in:
Thomas Harte 2019-04-29 15:40:17 -04:00
parent d9071ee9f1
commit 407643c575

View File

@ -42,7 +42,7 @@ class QL: public CPU::MC68000::BusHandler {
void will_perform(uint32_t address, uint16_t opcode) {
// Obtain the next line from the trace file.
char correct_state[300];
char correct_state[300] = "\n";
gzgets(trace, correct_state, sizeof(correct_state));
++line_count;
@ -136,7 +136,9 @@ class QL: public CPU::MC68000::BusHandler {
_machine.reset(new QL(*roms[0], traceLocation.UTF8String));
// This is how many cycles it takes to exhaust the supplied trace file.
_machine->run_for(HalfCycles(23923191));
_machine->run_for(HalfCycles(23923180));
_machine.reset();
}
@end