1
0
mirror of https://github.com/TomHarte/CLK.git synced 2026-04-26 19:17:52 +00:00

Restrict BOUNDS checks to 80286.

This commit is contained in:
Thomas Harte
2025-08-06 22:32:50 -04:00
parent 7c4df23c1c
commit b65f7b4a6a
2 changed files with 5 additions and 3 deletions
+4 -2
View File
@@ -1049,8 +1049,10 @@ std::pair<int, typename Decoder<model>::InstructionT> Decoder<model>::decode(
// operations would unlock an extra bit of storage for a net gain of 239 extra operation types and thereby
// alleviating any concerns over whether there'll be space to handle MMX, floating point extensions, etc.
if(operation_ == Operation::BOUND && source_ <= Source::None) {
return undefined();
if constexpr (model >= Model::i80286) {
if(operation_ == Operation::BOUND && source_ <= Source::None) {
return undefined();
}
}
const auto result = std::make_pair(