From 6232e8b1daf7067cb2e8065687530d5f88ecb46d Mon Sep 17 00:00:00 2001 From: iximeow Date: Fri, 15 Jan 2021 18:40:31 -0800 Subject: support xchg AX/reg --- test/protected_mode/mod.rs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test/protected_mode') 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"); } -- cgit v1.1