diff options
author | Kartik Agaram <vc@akkartik.com> | 2019-07-12 12:02:12 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2019-07-12 12:02:12 -0700 |
commit | 066e01f868bacff4615661152854091d83b2e6b9 (patch) | |
tree | 570442845c09f04db63fd8946f360743c9cbb5bd | |
parent | 2870525ac31dc42cb8504d95ae589e8a4dc93b9c (diff) | |
download | mu-066e01f868bacff4615661152854091d83b2e6b9.tar.gz |
.
-rw-r--r-- | subx/018jump_disp32.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/subx/018jump_disp32.cc b/subx/018jump_disp32.cc index 524ef5f1..d6b6a810 100644 --- a/subx/018jump_disp32.cc +++ b/subx/018jump_disp32.cc @@ -57,7 +57,7 @@ void test_je_disp32_success() { case 0x84: { // jump disp32 if ZF const int32_t offset = next32(); if (ZF) { - trace(Callstack_depth+1, "run") << "jump " << NUM(offset) << end(); + trace(Callstack_depth+1, "run") << "jump " << offset << end(); EIP += offset; } break; @@ -108,7 +108,7 @@ void test_jne_disp32_success() { case 0x85: { // jump disp32 unless ZF const int32_t offset = next32(); if (!ZF) { - trace(Callstack_depth+1, "run") << "jump " << NUM(offset) << end(); + trace(Callstack_depth+1, "run") << "jump " << offset << end(); EIP += offset; } break; @@ -161,7 +161,7 @@ void test_jg_disp32_success() { case 0x8f: { // jump disp32 if !SF and !ZF const int32_t offset = next32(); if (!ZF && SF == OF) { - trace(Callstack_depth+1, "run") << "jump " << NUM(offset) << end(); + trace(Callstack_depth+1, "run") << "jump " << offset << end(); EIP += offset; } break; @@ -215,7 +215,7 @@ void test_jge_disp32_success() { case 0x8d: { // jump disp32 if !SF const int32_t offset = next32(); if (SF == OF) { - trace(Callstack_depth+1, "run") << "jump " << NUM(offset) << end(); + trace(Callstack_depth+1, "run") << "jump " << offset << end(); EIP += offset; } break; @@ -269,7 +269,7 @@ void test_jl_disp32_success() { case 0x8c: { // jump disp32 if SF and !ZF const int32_t offset = next32(); if (SF != OF) { - trace(Callstack_depth+1, "run") << "jump " << NUM(offset) << end(); + trace(Callstack_depth+1, "run") << "jump " << offset << end(); EIP += offset; } break; @@ -344,7 +344,7 @@ void test_jle_disp32_lesser() { case 0x8e: { // jump disp32 if SF or ZF const int32_t offset = next32(); if (ZF || SF != OF) { - trace(Callstack_depth+1, "run") << "jump " << NUM(offset) << end(); + trace(Callstack_depth+1, "run") << "jump " << offset << end(); EIP += offset; } break; |