1
0
mirror of synced 2026-04-06 05:02:43 +00:00

Changed defaults.

Now unknown or unimplemented instructions won't throw by default.
This commit is contained in:
Andras Tantos
2025-02-17 22:49:23 +00:00
parent 2ac3afbaad
commit c4afce2866
2 changed files with 4 additions and 4 deletions

View File

@@ -210,9 +210,9 @@ MemoryPokes: list of address-value pairs
parcel address (like 0x42346:p2). For word addresses, the value is a 64-bit
integer, for parcel-address the value is a 16-bit integer
ThrowOnUnknown: optional boolean
If set, unknown instructions won't throw an assert. If cleared they are treated as no-ops. Defaults to set.
If set, unknown instructions throw an assert. If cleared they are treated as no-ops. Defaults to cleared.
ThrowOnUnimplemented: optional boolean
If set, unimplemented instructions won't throw an assert. If cleared they are treated as no-ops. Defaults to set.
If set, unimplemented instructions throw an assert. If cleared they are treated as no-ops. Defaults to cleared.
================================================================================
BreakPoints

View File

@@ -91,8 +91,8 @@ SoftCpu_c::SoftCpu_c(const Configuration_c &aConfig, const Configuration_c &aDef
}
}
mTimerIncrement = aConfig.get("TimerIncrement", aDefaultConfig.get("TimerIncrement", 1000));
mThrowOnUnknown = aConfig.get("ThrowOnUnknown", aDefaultConfig.get("ThrowOnUnknown", true));
mThrowOnUnimplemented = aConfig.get("ThrowOnUnimplemented", aDefaultConfig.get("ThrowOnUnimplemented", true));
mThrowOnUnknown = aConfig.get("ThrowOnUnknown", aDefaultConfig.get("ThrowOnUnknown", false));
mThrowOnUnimplemented = aConfig.get("ThrowOnUnimplemented", aDefaultConfig.get("ThrowOnUnimplemented", false));
if (mTimerIncrement == 0) mTimerIncrement = 1;
InitNotIntFlags();