mirror of
https://github.com/TomHarte/CLK.git
synced 2024-12-24 12:30:17 +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 {
|
||||
let error = errorForTrapAddress(oldPC)
|
||||
XCTAssert(error == nil, "Failed with error \(error)")
|
||||
return
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -12,11 +12,13 @@
|
||||
|
||||
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)
|
||||
{
|
||||
set_power_on(false);
|
||||
_timestamp++;
|
||||
|
||||
if(isReadOperation(operation)) {
|
||||
|
Loading…
Reference in New Issue
Block a user