aboutsummaryrefslogtreecommitdiff
path: root/test/protected_mode
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2021-01-15 18:40:31 -0800
committeriximeow <me@iximeow.net>2021-01-15 18:41:16 -0800
commit6232e8b1daf7067cb2e8065687530d5f88ecb46d (patch)
tree864b839a32f0154579a6a4c79ca227045f1a202e /test/protected_mode
parentd8083b08dc987adeda73fb13298383c6cf519596 (diff)
support xchg AX/reg0.1.5
Diffstat (limited to 'test/protected_mode')
-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");
}