diff options
| author | iximeow <me@iximeow.net> | 2026-05-31 05:51:50 +0000 |
|---|---|---|
| committer | iximeow <me@iximeow.net> | 2026-07-05 00:08:38 +0000 |
| commit | 9b24ada2c3a7afa42448fff7ee441ad983530d88 (patch) | |
| tree | e6a1ed54f5ce4fe5fc1fe5f462c25b4eada678c8 /src/real_mode/mod.rs | |
| parent | 9c676ba70cdbf0edfeae7b8a13e881724711383b (diff) | |
add MASM-style formatting support in all modes
this includes a mildly nightmarish bit of test harness to compare
against ml.exe/ml64.exe/dumpbin.exe, which in turn chased out a bunch of
bugs. yay!
Diffstat (limited to 'src/real_mode/mod.rs')
| -rw-r--r-- | src/real_mode/mod.rs | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/real_mode/mod.rs b/src/real_mode/mod.rs index ee66d2a..e66a4b8 100644 --- a/src/real_mode/mod.rs +++ b/src/real_mode/mod.rs @@ -8342,12 +8342,7 @@ fn read_operands< instruction.opcode = Opcode::SMSW; instruction.operand_count = 1; instruction.mem_size = 2; - let bank = if !instruction.prefixes.operand_size() { - RegisterBank::W - } else { - RegisterBank::D - }; - instruction.operands[0] = read_E(words, instruction, modrm, bank, sink)?; + instruction.operands[0] = read_E(words, instruction, modrm, RegisterBank::W, sink)?; } else if r == 5 { let mod_bits = modrm >> 6; if mod_bits != 0b11 { |
