1
0
mirror of https://github.com/TomHarte/CLK.git synced 2026-04-20 10:17:05 +00:00

Decode .6 as SAL.

Amazingly: now 20,814 failures outstanding.
This commit is contained in:
Thomas Harte
2025-08-06 16:30:55 -04:00
parent bdec32722e
commit 8ab688687e
2 changed files with 15 additions and 14 deletions
+15 -8
View File
@@ -810,14 +810,21 @@ std::pair<int, typename Decoder<model>::InstructionT> Decoder<model>::decode(
switch(reg) {
default:
if constexpr (model == Model::i8086) {
if(source_ == Source::eCX) {
set(Operation::SETMOC);
} else {
set(Operation::SETMO);
}
} else {
return undefined();
switch(model) {
case Model::i8086:
if(source_ == Source::eCX) {
set(Operation::SETMOC);
} else {
set(Operation::SETMO);
}
break;
case Model::i80286:
set(Operation::SAL);
break;
default:
undefined();
}
break;
@@ -61,18 +61,12 @@ NSSet *const allowList = [NSSet setWithArray:@[
// @"C0.2.json.gz",
// @"C0.3.json.gz",
// @"C0.5.json.gz",
// @"C0.6.json.gz",
// @"C1.6.json.gz",
// @"C6.json.gz",
// @"C7.json.gz",
// @"C8.json.gz", // ENTER
// @"C9.json.gz",
// @"CD.json.gz",
// @"CE.json.gz",
// @"D0.6.json.gz",
// @"D1.6.json.gz",
// @"D2.6.json.gz",
// @"D3.6.json.gz",
// @"D8.json.gz", // Various floating point
// @"EA.json.gz", // JMP aa:bb
// @"F4.json.gz", // HLT