diff options
author | iximeow <me@iximeow.net> | 2022-04-30 11:11:56 -0700 |
---|---|---|
committer | iximeow <me@iximeow.net> | 2022-04-30 11:11:56 -0700 |
commit | 073d3b367ee4164fc5c89c4a7869770f0261a00c (patch) | |
tree | 9415e3feae5bce70001fcef1eed530c53322fcbf /test | |
parent | 2097524c851b15e89091fd3775817a06f0eeae4f (diff) |
support 0x9a callf in 16/32-bit modes
Diffstat (limited to 'test')
-rw-r--r-- | test/protected_mode/mod.rs | 2 | ||||
-rw-r--r-- | test/real_mode/mod.rs | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/test/protected_mode/mod.rs b/test/protected_mode/mod.rs index 9cda6be..93f4b8f 100644 --- a/test/protected_mode/mod.rs +++ b/test/protected_mode/mod.rs @@ -2393,6 +2393,8 @@ fn prefixed_f30f() { #[test] fn only_32bit() { + test_display(&[0x9a, 0x11, 0x22, 0x33, 0x44, 0x55, 0x66], "callf 0x6655:0x44332211"); + test_display(&[0x66, 0x9a, 0x11, 0x22, 0x33, 0x44], "callf 0x4433:0x2211"); test_display(&[0x67, 0xac], "lods al, byte ds:[si]"); test_display(&[0x67, 0xae], "scas byte es:[di], al"); test_display(&[0xac], "lods al, byte ds:[esi]"); diff --git a/test/real_mode/mod.rs b/test/real_mode/mod.rs index dcd124c..27ef2f6 100644 --- a/test/real_mode/mod.rs +++ b/test/real_mode/mod.rs @@ -78,6 +78,8 @@ fn test_display_under(decoder: &InstDecoder, data: &[u8], expected: &'static str #[test] fn only_16bit() { + test_display(&[0x66, 0x9a, 0x11, 0x22, 0x33, 0x44, 0x55, 0x66], "callf 0x6655:0x44332211"); + test_display(&[0x9a, 0x11, 0x22, 0x33, 0x44], "callf 0x4433:0x2211"); test_display(&[0xac], "lods al, byte ds:[si]"); test_display(&[0xae], "scas byte es:[di], al"); test_display(&[0x67, 0xac], "lods al, byte ds:[esi]"); |