From 222c31db2102daecd1e77d66299a3ea01982ec35 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Fri, 12 Oct 2018 23:41:43 -0700 Subject: 4688 --- subx/017jump_disp8.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'subx/017jump_disp8.cc') diff --git a/subx/017jump_disp8.cc b/subx/017jump_disp8.cc index 57424215..b60d69b6 100644 --- a/subx/017jump_disp8.cc +++ b/subx/017jump_disp8.cc @@ -43,7 +43,7 @@ put(name, "74", "jump disp8 bytes away if ZF is set"); :(before "End Single-Byte Opcodes") case 0x74: { // jump rel8 if ZF - int8_t offset = static_cast(next()); + const int8_t offset = static_cast(next()); if (ZF) { trace(90, "run") << "jump " << NUM(offset) << end(); EIP += offset; @@ -82,7 +82,7 @@ put(name, "75", "jump disp8 bytes away if ZF is not set"); :(before "End Single-Byte Opcodes") case 0x75: { // jump rel8 unless ZF - int8_t offset = static_cast(next()); + const int8_t offset = static_cast(next()); if (!ZF) { trace(90, "run") << "jump " << NUM(offset) << end(); EIP += offset; @@ -123,7 +123,7 @@ put(name, "7f", "jump disp8 bytes away if greater (ZF is unset, SF == OF)"); :(before "End Single-Byte Opcodes") case 0x7f: { // jump rel8 if !SF and !ZF - int8_t offset = static_cast(next()); + const int8_t offset = static_cast(next()); if (!ZF && SF == OF) { trace(90, "run") << "jump " << NUM(offset) << end(); EIP += offset; @@ -165,7 +165,7 @@ put(name, "7d", "jump disp8 bytes away if greater or equal (SF == OF)"); :(before "End Single-Byte Opcodes") case 0x7d: { // jump rel8 if !SF - int8_t offset = static_cast(next()); + const int8_t offset = static_cast(next()); if (SF == OF) { trace(90, "run") << "jump " << NUM(offset) << end(); EIP += offset; @@ -207,7 +207,7 @@ put(name, "7c", "jump disp8 bytes away if lesser (SF != OF)"); :(before "End Single-Byte Opcodes") case 0x7c: { // jump rel8 if SF and !ZF - int8_t offset = static_cast(next()); + const int8_t offset = static_cast(next()); if (SF != OF) { trace(90, "run") << "jump " << NUM(offset) << end(); EIP += offset; @@ -264,7 +264,7 @@ put(name, "7e", "jump disp8 bytes away if lesser or equal (ZF is set or SF != OF :(before "End Single-Byte Opcodes") case 0x7e: { // jump rel8 if SF or ZF - int8_t offset = static_cast(next()); + const int8_t offset = static_cast(next()); if (ZF || SF != OF) { trace(90, "run") << "jump " << NUM(offset) << end(); EIP += offset; -- cgit 1.4.1-2-gfad0