diff options
author | iximeow <me@iximeow.net> | 2019-11-30 12:12:40 -0800 |
---|---|---|
committer | iximeow <me@iximeow.net> | 2020-01-12 16:10:13 -0800 |
commit | 7561575f135e0ba72f0a90a5859d19f7b02a31e8 (patch) | |
tree | 77f1f9edddc5eec033d6ac442abbc1f851dc6c7a /src/display.rs | |
parent | 2b9f85fed5c720725748417a2d91b6bb38ca2747 (diff) |
fix 0x98 and 0x99 opcodes, lss/lfs/lgs decodes
also remove unnecessary variants in unlikely_operands and adjust
expectations of several tests
Diffstat (limited to 'src/display.rs')
-rw-r--r-- | src/display.rs | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/src/display.rs b/src/display.rs index 3e058df..5e42cef 100644 --- a/src/display.rs +++ b/src/display.rs @@ -331,8 +331,6 @@ impl fmt::Display for Opcode { &Opcode::RETURN => write!(f, "{}", "ret"), &Opcode::PUSHF => write!(f, "{}", "pushf"), &Opcode::WAIT => write!(f, "{}", "wait"), - &Opcode::CBW => write!(f, "{}", "cbw"), - &Opcode::CDW => write!(f, "{}", "cdw"), &Opcode::LODS => write!(f, "{}", "lods"), &Opcode::STOS => write!(f, "{}", "stos"), &Opcode::LAHF => write!(f, "{}", "lahf"), @@ -523,6 +521,12 @@ impl fmt::Display for Opcode { &Opcode::VMREAD => write!(f, "{}", "vmread"), &Opcode::VMWRITE => write!(f, "{}", "vmwrite"), &Opcode::XORPS => write!(f, "{}", "xorps"), + &Opcode::CBW => write!(f, "{}", "cbw"), + &Opcode::CWDE => write!(f, "{}", "cwde"), + &Opcode::CDQE => write!(f, "{}", "cdqe"), + &Opcode::CBD => write!(f, "{}", "cbd"), + &Opcode::CDQ => write!(f, "{}", "cdq"), + &Opcode::CQO => write!(f, "{}", "cqo"), &Opcode::Invalid => write!(f, "{}", "invalid"), } } @@ -720,6 +724,12 @@ impl <T: std::fmt::Write> Colorize<T> for Opcode { Opcode::STC | Opcode::STI | Opcode::STD | + Opcode::CBW | + Opcode::CWDE | + Opcode::CDQE | + Opcode::CBD | + Opcode::CDQ | + Opcode::CQO | Opcode::MOVDDUP | Opcode::MOVSLDUP | Opcode::MOVDQ2Q | @@ -731,8 +741,6 @@ impl <T: std::fmt::Write> Colorize<T> for Opcode { Opcode::PEXTRW | Opcode::PINSRW | Opcode::MOV | - Opcode::CBW | - Opcode::CDW | Opcode::LODS | Opcode::STOS | Opcode::LAHF | |