aboutsummaryrefslogtreecommitdiff
path: root/src/long_mode/display.rs
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2023-01-29 17:44:05 -0800
committeriximeow <me@iximeow.net>2023-07-04 19:01:38 -0700
commit62102819adcadf8253f27d5ea06953d1400c2dfe (patch)
tree7d46030862fa1ab0b692c3b0b99397fbd8f2eeee /src/long_mode/display.rs
parent0a4004c44c3170c9b4a94bd6a53c7a4600299a8f (diff)
line up Opcode values for simple translation from opc bytes
Diffstat (limited to 'src/long_mode/display.rs')
-rw-r--r--src/long_mode/display.rs20
1 files changed, 11 insertions, 9 deletions
diff --git a/src/long_mode/display.rs b/src/long_mode/display.rs
index bb5f682..181ea14 100644
--- a/src/long_mode/display.rs
+++ b/src/long_mode/display.rs
@@ -357,9 +357,19 @@ const MNEMONICS: &[&'static str] = &[
"adc",
"sbb",
"and",
- "xor",
"sub",
+ "xor",
"cmp",
+
+ "rol",
+ "ror",
+ "rcl",
+ "rcr",
+ "shl",
+ "shr",
+ "sal",
+ "sar",
+
"invalid",
"xadd",
"bt",
@@ -409,15 +419,7 @@ const MNEMONICS: &[&'static str] = &[
"movzx",
"movsx",
"movsxd",
- "sar",
- "sal",
- "shr",
"shrd",
- "shl",
- "rcr",
- "rcl",
- "ror",
- "rol",
"inc",
"dec",
"hlt",