aboutsummaryrefslogtreecommitdiff
path: root/test/protected_mode/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'test/protected_mode/mod.rs')
-rw-r--r--test/protected_mode/mod.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/protected_mode/mod.rs b/test/protected_mode/mod.rs
index e3c7975..88cf7ea 100644
--- a/test/protected_mode/mod.rs
+++ b/test/protected_mode/mod.rs
@@ -1030,6 +1030,13 @@ fn test_mov() {
}
#[test]
+fn test_xchg() {
+ test_display(&[0x90], "nop");
+ test_display(&[0x91], "xchg eax, ecx");
+ test_display(&[0x66, 0x91], "xchg ax, cx");
+}
+
+#[test]
fn test_stack() {
test_display(&[0x66, 0x50], "push ax");
}