aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2019-11-29 17:21:28 -0800
committeriximeow <me@iximeow.net>2020-01-12 16:10:13 -0800
commitd37aefee4edb15ca58534454c7d5dd87af696fef (patch)
treecde69751aabb07ea52a7184f974dacbbbb59aa05 /test
parent5c86aaf06d0f638d3fc1d302ef4d401b0222bee1 (diff)
hack to handle prefixed sequences that might appear to be escaped opcodes
Diffstat (limited to 'test')
-rw-r--r--test/test.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/test.rs b/test/test.rs
index b88e470..90a1599 100644
--- a/test/test.rs
+++ b/test/test.rs
@@ -89,6 +89,7 @@ fn test_arithmetic() {
test_display(&[0x81, 0xec, 0x10, 0x03, 0x00, 0x00], "sub esp, 0x310");
test_display(&[0x0f, 0xaf, 0xc2], "imul eax, edx");
test_display(&[0x4b, 0x69, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65], "imul rax, [r11 + 0x6f], 0x656c706d");
+ test_display(&[0x66, 0x0f, 0xaf, 0xd1], "imul dx, cx");
test_display(&[0x4b, 0x6b, 0x43, 0x6f, 0x6d], "imul al, [r11 + 0x6f], 0x6d");
test_display(&[0x4f, 0x4e, 0x00, 0xcc], "add spl, r9b");
}