1
0
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:
Thomas Harte
2025-04-04 12:30:08 -04:00
parent ecc7501377
commit d5997a30b2
4 changed files with 10 additions and 5 deletions

View File

@@ -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);
}

View File

@@ -251,7 +251,7 @@ public:
if(index == 0x00) {
log_.info().append("%02x", value);
if(value == 0x1d) {
if(value == 0x2b) {
printf("");
}
}

View File

@@ -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;

View File

@@ -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;