1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-22 12:33:29 +00:00

Add missing substitutions.

This commit is contained in:
Thomas Harte 2023-09-19 14:00:27 -04:00
parent 02fcaf0dbd
commit 6f5fcf23dc
2 changed files with 3 additions and 3 deletions

View File

@ -406,7 +406,7 @@ std::pair<int, typename Decoder<model>::InstructionT> Decoder<model>::decode(con
case 0xe0: Displacement(LOOPNE, DataSize::Byte); break;
case 0xe1: Displacement(LOOPE, DataSize::Byte); break;
case 0xe2: Displacement(LOOP, DataSize::Byte); break;
case 0xe3: Displacement(JPCX, DataSize::Byte); break;
case 0xe3: Displacement(JCXZ, DataSize::Byte); break;
case 0xe4: RegAddr(IN, eAX, DataSize::Byte, DataSize::Byte); break;
case 0xe5: RegAddr(IN, eAX, data_size_, DataSize::Byte); break;

View File

@ -535,7 +535,7 @@ decode(const std::initializer_list<uint8_t> &stream, bool set_32_bit = false) {
// sahf
// jz 0x000000f3 (from 0x85)
test(instructions[52], DataSize::DWord, Operation::CMP, ScaleIndexBase(Source::eBP), Source::eCX, 0, 0x2c87445f);
test(instructions[53], Operation::JPCX, 0, 0x02);
test(instructions[53], Operation::JCXZ, 0, 0x02);
test(instructions[54], Operation::SAHF);
test(instructions[55], Operation::JZ, 0, 0x6e);
@ -555,7 +555,7 @@ decode(const std::initializer_list<uint8_t> &stream, bool set_32_bit = false) {
test_far(instructions[60], Operation::CALLfar, 0xe21b, 0x97d0f58a);
test(instructions[61], Operation::PUSHA);
test(instructions[62], DataSize::Byte, Operation::MOV, Source::Immediate, Source::eAX, 0xcf);
test(instructions[63], Operation::JPCX, 0, 0xd4 - 0x9d);
test(instructions[63], Operation::JCXZ, 0, 0xd4 - 0x9d);
}
- (void)testSourceModRegRM1 {