mirror of
https://github.com/TomHarte/CLK.git
synced 2025-08-05 08:26:28 +00:00
Reset output on latch write in applicable modes.
This commit is contained in:
@@ -42,7 +42,7 @@ public:
|
||||
|
||||
void set_a20_enabled(const bool enabled) {
|
||||
// Assumed: this'll be something to set on Memory.
|
||||
log_.info().append("A20 line is now: ", enabled);
|
||||
log_.info().append("A20 line is now: %d", enabled);
|
||||
linear_memory_.set_a20_enabled(enabled);
|
||||
}
|
||||
|
||||
|
@@ -251,7 +251,7 @@ public:
|
||||
if(index == 0x00) {
|
||||
log_.info().append("%02x", value);
|
||||
|
||||
if(value == 0x1d) {
|
||||
if(value == 0x2b) {
|
||||
printf("");
|
||||
}
|
||||
}
|
||||
|
@@ -218,6 +218,11 @@ private:
|
||||
counter = reload;
|
||||
break;
|
||||
|
||||
case OperatingMode::InterruptOnTerminalCount:
|
||||
case OperatingMode::HardwareRetriggerableOneShot:
|
||||
set_output<channel>(observer, false);
|
||||
break;
|
||||
|
||||
case OperatingMode::SquareWaveGenerator:
|
||||
counter = reload & ~1;
|
||||
break;
|
||||
|
@@ -465,9 +465,9 @@ struct MemoryLedger {
|
||||
// Execute test and compare.
|
||||
++test_count;
|
||||
|
||||
if(opcode == 0xe1a0ae2f && test_count == 2) {
|
||||
printf("");
|
||||
}
|
||||
// if(opcode == 0xe1a0ae2f && test_count == 2) {
|
||||
// printf("");
|
||||
// }
|
||||
|
||||
execute(opcode, *test);
|
||||
NSMutableString *error = nil;
|
||||
|
Reference in New Issue
Block a user