aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2026-05-22 05:49:01 +0000
committeriximeow <me@iximeow.net>2026-05-25 01:53:53 +0000
commitf3d52fcb08b4d1ef05583e1ca302e450e7c7b181 (patch)
tree50bd71ac61001fdf83e54e8befa0d526ed0364c0 /test
parent41e6fb71ab86cdd7007ac72ec9cb2499439037ae (diff)
pusha/popa/push-imm memory sizes
Diffstat (limited to 'test')
-rw-r--r--test/protected_mode/operand.rs4
-rw-r--r--test/real_mode/operand.rs4
2 files changed, 8 insertions, 0 deletions
diff --git a/test/protected_mode/operand.rs b/test/protected_mode/operand.rs
index d90e6ba..0c970de 100644
--- a/test/protected_mode/operand.rs
+++ b/test/protected_mode/operand.rs
@@ -75,4 +75,8 @@ fn test_implied_memory_width() {
assert_eq!(mem_size_of(&[0x0f, 0xa8]), Some(4));
// pop gs
assert_eq!(mem_size_of(&[0x0f, 0xa9]), Some(4));
+
+ // callf 0xcf23:0x2d62
+ assert_eq!(mem_size_of(&[0x9a, 0x62, 0x2d, 0x00, 0x00, 0x23, 0xcf]), Some(6));
+ assert_eq!(mem_size_of(&[0x66, 0x9a, 0x62, 0x2d, 0x23, 0xcf]), Some(4));
}
diff --git a/test/real_mode/operand.rs b/test/real_mode/operand.rs
index 9b37f36..fb2ce39 100644
--- a/test/real_mode/operand.rs
+++ b/test/real_mode/operand.rs
@@ -48,4 +48,8 @@ fn test_implied_memory_width() {
// "vmaskmovdqu xmm0, xmm1"
assert_eq!(mem_size_of(&[0xc4, 0xe1, 0x79, 0xf7, 0xc1]), Some(16));
assert_eq!(mem_size_of(&[0x67, 0xc4, 0xe1, 0x79, 0xf7, 0xc1]), Some(16));
+
+ // callf 0xcf23:0x2d62
+ assert_eq!(mem_size_of(&[0x9a, 0x62, 0x2d, 0x23, 0xcf]), Some(4));
+ assert_eq!(mem_size_of(&[0x66, 0x9a, 0x62, 0x2d, 0x00, 0x00, 0x23, 0xcf]), Some(6));
}