From 0c1d6fc73c90f906aa2ed5dbdde1ade153e6a0ad Mon Sep 17 00:00:00 2001 From: iximeow Date: Tue, 11 Feb 2020 01:00:34 -0800 Subject: support `in` and `out` instructions --- test/test.rs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'test/test.rs') diff --git a/test/test.rs b/test/test.rs index 6bc8972..896ffaa 100644 --- a/test/test.rs +++ b/test/test.rs @@ -512,7 +512,16 @@ fn test_bitwise() { #[test] fn test_misc() { - test_display(&[0xcc], "int 0x3"); + test_display(&[0xe4, 0x99], "in al, 0x99"); + test_display(&[0xe5, 0x99], "in eax, 0x99"); + test_display(&[0x67, 0xe5, 0x99], "in eax, 0x99"); + test_display(&[0x4f, 0xe5, 0x99], "in eax, 0x99"); + test_display(&[0xe6, 0x99], "out 0x99, al"); + test_display(&[0x4f, 0xe7, 0x99], "out 0x99, eax"); + test_display(&[0xec], "in al, dx"); + test_display(&[0xed], "in eax, dx"); + test_display(&[0xee], "out dx, al"); + test_display(&[0xef], "out dx, eax"); test_display(&[0xcd, 0x00], "int 0x0"); test_display(&[0xcd, 0xff], "int 0xff"); test_display(&[0x9c], "pushf"); -- cgit v1.1