From 95fbfd0165a6ed2aac9098ab015a25de68030a3b Mon Sep 17 00:00:00 2001 From: iximeow Date: Wed, 15 Jan 2020 01:23:51 -0800 Subject: negative displacements were printed wrong, test against that for the future this was accidentally fixed in no_std-ing, the prior commit --- test/test.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/test/test.rs b/test/test.rs index 8c8ad25..0945328 100644 --- a/test/test.rs +++ b/test/test.rs @@ -351,6 +351,7 @@ fn test_mov() { test_display(&[0x48, 0xc7, 0x43, 0x10, 0x00, 0x00, 0x00, 0x00], "mov [rbx + 0x10], 0x0"); test_display(&[0x49, 0x89, 0x4e, 0x08], "mov [r14 + 0x8], rcx"); test_display(&[0x48, 0x8b, 0x32], "mov rsi, [rdx]"); + test_display(&[0x4d, 0x8b, 0x4c, 0x10, 0xf8], "mov r9, [r8 + rdx * 1 - 0x8]"); test_display(&[0x49, 0x89, 0x46, 0x10], "mov [r14 + 0x10], rax"); test_display(&[0x4d, 0x0f, 0x43, 0xec], "cmovnb r13, r12"); test_display(&[0x0f, 0xb6, 0x06], "movzx eax, byte [rsi]"); -- cgit v1.1