From dff9a7e4a14984705db8fb18550af5a4fa9ce3d5 Mon Sep 17 00:00:00 2001 From: iximeow Date: Sat, 21 Aug 2021 14:33:13 -0700 Subject: fix negative relative branches (again!!! +- is bad!!!) --- test/real_mode/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test/real_mode') diff --git a/test/real_mode/mod.rs b/test/real_mode/mod.rs index 8543fae..dfbe4e8 100644 --- a/test/real_mode/mod.rs +++ b/test/real_mode/mod.rs @@ -16927,6 +16927,7 @@ fn test_real_mode() { test_display(&[0x68, 0x7f, 0x63], "push 0x637f"); test_display(&[0x6b, 0x43, 0x6f, 0x6d], "imul ax, word [bp + di + 0x6f], 0x6d"); test_display(&[0x72, 0x5a], "jb $+0x5a"); + test_display(&[0x72, 0xf0], "jb $-0x10"); test_display(&[0x73, 0x31], "jnb $+0x31"); test_display(&[0x74, 0x47], "jz $+0x47"); test_display(&[0x81, 0xec, 0x10, 0x03], "sub sp, 0x310"); @@ -17758,7 +17759,7 @@ fn test_real_mode() { test_display(&[0xe1, 0x12], "loopz $+0x12"); test_display(&[0xe2, 0x12], "loop $+0x12"); test_display(&[0xe3, 0x12], "jcxz $+0x12"); - test_display(&[0xe3, 0xf0], "jcxz $+-0x10"); + test_display(&[0xe3, 0xf0], "jcxz $-0x10"); test_display(&[0xe4, 0x99], "in al, 0x99"); test_display(&[0xe5, 0x99], "in ax, 0x99"); test_display(&[0xe6, 0x99], "out 0x99, al"); -- cgit v1.1