diff options
author | iximeow <me@iximeow.net> | 2021-08-21 14:33:13 -0700 |
---|---|---|
committer | iximeow <me@iximeow.net> | 2021-08-21 14:33:13 -0700 |
commit | dff9a7e4a14984705db8fb18550af5a4fa9ce3d5 (patch) | |
tree | 01fcd2794040ad1b29ac2638726a090a312f05f4 /test/real_mode/mod.rs | |
parent | d7208834963c46a6da74a3837d9e82bad33dfd7f (diff) |
fix negative relative branches (again!!! +- is bad!!!)
Diffstat (limited to 'test/real_mode/mod.rs')
-rw-r--r-- | test/real_mode/mod.rs | 3 |
1 files changed, 2 insertions, 1 deletions
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"); |