aboutsummaryrefslogtreecommitdiff
path: root/test/real_mode/operand.rs
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2026-03-27 06:32:04 +0000
committeriximeow <me@iximeow.net>2026-05-25 00:59:27 +0000
commit35358d573bccd0776e55187564ccd6c72c9f9c34 (patch)
tree43d93572e271a36aec5f3d54c0a0a86ddf7d4c33 /test/real_mode/operand.rs
parent8a2dd6bcf37a3ebb43e2153a306cf0250637c116 (diff)
push/pop for segment registers has implicit memory access
Diffstat (limited to 'test/real_mode/operand.rs')
-rw-r--r--test/real_mode/operand.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/real_mode/operand.rs b/test/real_mode/operand.rs
index e0f59e1..cdf5113 100644
--- a/test/real_mode/operand.rs
+++ b/test/real_mode/operand.rs
@@ -28,4 +28,12 @@ fn test_implied_memory_width() {
assert_eq!(mem_size_of(&[0xc9]), Some(2));
// xlat
assert_eq!(mem_size_of(&[0xd7]), Some(1));
+ // push fs
+ assert_eq!(mem_size_of(&[0x0f, 0xa0]), Some(2));
+ // pop fs
+ assert_eq!(mem_size_of(&[0x0f, 0xa1]), Some(2));
+ // push gs
+ assert_eq!(mem_size_of(&[0x0f, 0xa8]), Some(2));
+ // pop gs
+ assert_eq!(mem_size_of(&[0x0f, 0xa9]), Some(2));
}