diff options
author | Kartik Agaram <vc@akkartik.com> | 2018-10-12 23:41:43 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2018-10-12 23:41:43 -0700 |
commit | 222c31db2102daecd1e77d66299a3ea01982ec35 (patch) | |
tree | 25930bd76874e16651774ba1fd0988397dda5a12 /subx/018jump_disp16.cc | |
parent | 01dada15c33dff954f3b76406fd9ed09ef4834c8 (diff) | |
download | mu-222c31db2102daecd1e77d66299a3ea01982ec35.tar.gz |
4688
Diffstat (limited to 'subx/018jump_disp16.cc')
-rw-r--r-- | subx/018jump_disp16.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/subx/018jump_disp16.cc b/subx/018jump_disp16.cc index 1cbb50a4..7adb2321 100644 --- a/subx/018jump_disp16.cc +++ b/subx/018jump_disp16.cc @@ -18,7 +18,7 @@ put(name, "e9", "jump disp16 bytes away"); :(before "End Single-Byte Opcodes") case 0xe9: { // jump rel8 - int16_t offset = imm16(); + const int16_t offset = imm16(); trace(90, "run") << "jump " << offset << end(); EIP += offset; break; @@ -49,7 +49,7 @@ put(name_0f, "84", "jump disp16 bytes away if ZF is set"); :(before "End Two-Byte Opcodes Starting With 0f") case 0x84: { // jump rel16 if ZF - int8_t offset = imm16(); + const int8_t offset = imm16(); if (ZF) { trace(90, "run") << "jump " << NUM(offset) << end(); EIP += offset; @@ -88,7 +88,7 @@ put(name_0f, "85", "jump disp16 bytes away if ZF is not set"); :(before "End Two-Byte Opcodes Starting With 0f") case 0x85: { // jump rel16 unless ZF - int8_t offset = imm16(); + const int8_t offset = imm16(); if (!ZF) { trace(90, "run") << "jump " << NUM(offset) << end(); EIP += offset; @@ -129,7 +129,7 @@ put(name_0f, "8f", "jump disp16 bytes away if greater (ZF is unset, SF == OF)"); :(before "End Two-Byte Opcodes Starting With 0f") case 0x8f: { // jump rel16 if !SF and !ZF - int8_t offset = imm16(); + const int8_t offset = imm16(); if (!ZF && SF == OF) { trace(90, "run") << "jump " << NUM(offset) << end(); EIP += offset; @@ -171,7 +171,7 @@ put(name_0f, "8d", "jump disp16 bytes away if greater or equal (SF == OF)"); :(before "End Two-Byte Opcodes Starting With 0f") case 0x8d: { // jump rel16 if !SF - int8_t offset = imm16(); + const int8_t offset = imm16(); if (SF == OF) { trace(90, "run") << "jump " << NUM(offset) << end(); EIP += offset; @@ -213,7 +213,7 @@ put(name_0f, "8c", "jump disp16 bytes away if lesser (SF != OF)"); :(before "End Two-Byte Opcodes Starting With 0f") case 0x8c: { // jump rel16 if SF and !ZF - int8_t offset = imm16(); + const int8_t offset = imm16(); if (SF != OF) { trace(90, "run") << "jump " << NUM(offset) << end(); EIP += offset; @@ -270,7 +270,7 @@ put(name_0f, "8e", "jump disp16 bytes away if lesser or equal (ZF is set or SF ! :(before "End Two-Byte Opcodes Starting With 0f") case 0x8e: { // jump rel16 if SF or ZF - int8_t offset = imm16(); + const int8_t offset = imm16(); if (ZF || SF != OF) { trace(90, "run") << "jump " << NUM(offset) << end(); EIP += offset; |