1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-11-28 10:17:40 +00:00

Do something for SMSW.

This commit is contained in:
Thomas Harte
2025-03-16 22:05:14 -04:00
parent 15da707324
commit 3d19d0816b
3 changed files with 69 additions and 45 deletions

View File

@@ -282,6 +282,13 @@ template <
context.segments.did_update(instruction.destination().source());
}
break;
case Operation::SMSW:
if constexpr (ContextT::model >= Model::i80286 && std::is_same_v<IntT, uint16_t>) {
Primitive::smsw(destination_w(), context);
} else {
assert(false);
}
break;
case Operation::JO: jcc(context.flags.template condition<Condition::Overflow>()); return;
case Operation::JNO: jcc(!context.flags.template condition<Condition::Overflow>()); return;