diff options
author | iximeow <me@iximeow.net> | 2021-08-21 12:13:01 -0700 |
---|---|---|
committer | iximeow <me@iximeow.net> | 2021-08-21 12:13:01 -0700 |
commit | cef4feeaf9c64e03a6728f267750ac2fb32eb9ff (patch) | |
tree | dcfc974ad5d1beffe629138aebdfa92fbf7f90a5 /test/real_mode/mod.rs | |
parent | 4612215ddc98dabaffedc36f6fe402bb9f04119a (diff) |
report memory sizes for push, pop, call, ret
these instructions had memory sizes reported for the operand, if it was
a memory operand, but for versions with non-memory operands the decoded
`Instruction` would imply that non memory access would happen at all.
now, decoded instructions in these cases will report a more useful
memory size.
Diffstat (limited to 'test/real_mode/mod.rs')
-rw-r--r-- | test/real_mode/mod.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/real_mode/mod.rs b/test/real_mode/mod.rs index 6005f07..8543fae 100644 --- a/test/real_mode/mod.rs +++ b/test/real_mode/mod.rs @@ -1,3 +1,5 @@ +mod operand; + use std::fmt::Write; use yaxpeax_arch::{AddressBase, Decoder, U8Reader, LengthedInstruction}; @@ -17892,6 +17894,7 @@ fn test_real_mode() { test_display(&[0xff, 0x08], "dec word [bx + si]"); test_display(&[0xff, 0x15], "call word [di]"); test_display(&[0x67, 0xff, 0x15, 0x12, 0x12, 0x12, 0x12], "call word [0x12121212]"); + // note that this call only writes two bytes, and only moves sp by two. test_display(&[0x66, 0xff, 0x15], "call dword [di]"); test_display(&[0xff, 0x18], "callf dword [bx + si]"); test_display(&[0xff, 0x24], "jmp word [si]"); |