aboutsummaryrefslogtreecommitdiff
path: root/src/long_mode/mod.rs
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2020-07-26 13:00:50 -0700
committeriximeow <me@iximeow.net>2020-07-26 13:00:50 -0700
commitfdfec2663a2861f033145018ce1478981c16708b (patch)
tree0a311c6bdfb95706755c137bcd446f49c5fadf8d /src/long_mode/mod.rs
parent1b71bf3e6521e7ecbec6b1872b7120cc9be3bb72 (diff)
decode lahf/sahf
Diffstat (limited to 'src/long_mode/mod.rs')
-rw-r--r--src/long_mode/mod.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/long_mode/mod.rs b/src/long_mode/mod.rs
index 43cb19e..35e9c60 100644
--- a/src/long_mode/mod.rs
+++ b/src/long_mode/mod.rs
@@ -7321,6 +7321,9 @@ fn unlikely_operands<T: Iterator<Item=u8>>(decoder: &InstDecoder, mut bytes_iter
instruction.operands[1] = OperandSpec::Deref;
instruction.operand_count = 2;
}
+ OperandCode::AH => {
+ instruction.operand_count = 0;
+ }
OperandCode::DX_Xv => {
instruction.modrm_rrr = RegSpec::dx();
instruction.modrm_mmm = RegSpec::rsi();