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/protected_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/protected_mode/mod.rs')
| -rw-r--r-- | src/protected_mode/mod.rs | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/protected_mode/mod.rs b/src/protected_mode/mod.rs index 5476647..9798f2f 100644 --- a/src/protected_mode/mod.rs +++ b/src/protected_mode/mod.rs @@ -8297,11 +8297,6 @@ 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, RegisterBank::D, sink)?; } else if r == 5 { let mod_bits = modrm >> 6; |
