aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/protected_mode/mod.rs5
-rw-r--r--src/real_mode/mod.rs5
2 files changed, 4 insertions, 6 deletions
diff --git a/src/protected_mode/mod.rs b/src/protected_mode/mod.rs
index 79eb1b1..2d37bc6 100644
--- a/src/protected_mode/mod.rs
+++ b/src/protected_mode/mod.rs
@@ -4229,9 +4229,8 @@ impl Instruction {
/// the reported size is correct for displayed operand sizes (`word [ptr]` will have a
/// `MemoryAccessSize` indicating two bytes) but is _not_ sufficient to describe all accesses
/// of all instructions. the most notable exception is for operand-size-prefixed `call`, where
- /// `66ff10` is the instruction `call word [eax]`, but will push a four-byte `eip`. this same
- /// imprecision exists for `jmp word [mem]` as well. tools must account for these inconsistent
- /// sizes internally.
+ /// `66ff10` is the instruction `call word [eax]`, but will push a four-byte `eip`. tools must
+ /// account for these inconsistent sizes internally.
pub fn mem_size(&self) -> Option<MemoryAccessSize> {
if self.mem_size != 0 {
Some(MemoryAccessSize { size: self.mem_size })
diff --git a/src/real_mode/mod.rs b/src/real_mode/mod.rs
index 8a7e453..7f3ad42 100644
--- a/src/real_mode/mod.rs
+++ b/src/real_mode/mod.rs
@@ -4229,9 +4229,8 @@ impl Instruction {
/// the reported size is correct for displayed operand sizes (`word [ptr]` will have a
/// `MemoryAccessSize` indicating two bytes) but is _not_ sufficient to describe all accesses
/// of all instructions. the most notable exception is for operand-size-prefixed `call`, where
- /// `66ff10` is the instruction `call dword [eax]`, but will push a four-byte `eip`. this same
- /// imprecision exists for `jmp dword [mem]` as well. tools must account for these inconsistent
- /// sizes internally.
+ /// `66ff10` is the instruction `call dword [eax]`, but will push a four-byte `eip`. tools
+ /// must account for these inconsistent sizes internally.
pub fn mem_size(&self) -> Option<MemoryAccessSize> {
if self.mem_size != 0 {
Some(MemoryAccessSize { size: self.mem_size })