aboutsummaryrefslogtreecommitdiff
path: root/test/protected_mode/operand.rs
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2026-03-09 16:36:00 +0000
committeriximeow <me@iximeow.net>2026-05-25 00:59:27 +0000
commit8a2dd6bcf37a3ebb43e2153a306cf0250637c116 (patch)
tree44530b543f6718a6c709abf7c35f431f053beea8 /test/protected_mode/operand.rs
parent63582532b8014d59117a8929afd1f7725bc1b469 (diff)
pushf, popf, enter, leave, xlat all have implicit memory access
also add "is_masked" to operand spec
Diffstat (limited to 'test/protected_mode/operand.rs')
-rw-r--r--test/protected_mode/operand.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/protected_mode/operand.rs b/test/protected_mode/operand.rs
index 78a34b4..fe9b54a 100644
--- a/test/protected_mode/operand.rs
+++ b/test/protected_mode/operand.rs
@@ -47,4 +47,12 @@ fn test_implied_memory_width() {
// two bytes.
assert_eq!(mem_size_of(&[0x66, 0xff, 0x10]), Some(2));
assert_eq!(mem_size_of(&[0x66, 0xff, 0x20]), Some(2));
+ // pushf
+ assert_eq!(mem_size_of(&[0x9c]), Some(4));
+ // popf
+ assert_eq!(mem_size_of(&[0x9d]), Some(4));
+ // leave
+ assert_eq!(mem_size_of(&[0xc9]), Some(4));
+ // xlat
+ assert_eq!(mem_size_of(&[0xd7]), Some(1));
}