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:
parent
0182b0483a
commit
db7c6430b5
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user