1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-01-12 15:31:09 +00:00

Fixed Klaus Dormann termination condition.

This commit is contained in:
Thomas Harte 2016-06-29 19:16:34 -04:00
parent 0182b0483a
commit db7c6430b5
2 changed files with 5 additions and 2 deletions

View File

@ -47,6 +47,7 @@ class KlausDormannTests: XCTestCase {
if newPC == oldPC { if newPC == oldPC {
let error = errorForTrapAddress(oldPC) let error = errorForTrapAddress(oldPC)
XCTAssert(error == nil, "Failed with error \(error)") XCTAssert(error == nil, "Failed with error \(error)")
return
} }
} }
} }

View File

@ -12,11 +12,13 @@
using namespace CPU6502; using namespace CPU6502;
AllRAMProcessor::AllRAMProcessor() : _timestamp(0) {} AllRAMProcessor::AllRAMProcessor() : _timestamp(0)
{
set_power_on(false);
}
int AllRAMProcessor::perform_bus_operation(CPU6502::BusOperation operation, uint16_t address, uint8_t *value) int AllRAMProcessor::perform_bus_operation(CPU6502::BusOperation operation, uint16_t address, uint8_t *value)
{ {
set_power_on(false);
_timestamp++; _timestamp++;
if(isReadOperation(operation)) { if(isReadOperation(operation)) {