aboutsummaryrefslogtreecommitdiff
path: root/src/real_mode
diff options
context:
space:
mode:
authorSamuel Arnold <samuel.arnold@crowdstrike.com>2026-06-12 17:30:30 -0700
committeriximeow <me@iximeow.net>2026-06-21 16:38:50 +0000
commit2146ee62c265cd13ebcc1aaef138dd9e1aec4b72 (patch)
tree1b52e2a66593ee0b2299d39ff1e7845c8f5c3392 /src/real_mode
parent8fd69da964e1e2056fd3ba2bb4ec8927340b82c6 (diff)
Make invalid instruction constructors actually return invalid instructionsHEADno-gods-no-
As opposed to nops.
Diffstat (limited to 'src/real_mode')
-rw-r--r--src/real_mode/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/real_mode/mod.rs b/src/real_mode/mod.rs
index f54533c..3a7cbd3 100644
--- a/src/real_mode/mod.rs
+++ b/src/real_mode/mod.rs
@@ -3240,7 +3240,7 @@ impl Instruction {
pub fn invalid() -> Instruction {
Instruction {
prefixes: Prefixes::new(0),
- opcode: Opcode::NOP,
+ opcode: Opcode::Invalid,
mem_size: 0,
regs: [RegSpec::ax(); 4],
scale: 0,