From 5a2cb154eb016aa8b84ad939f63eb56dd7a0a90f Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Tue, 2 Oct 2018 01:21:01 -0700 Subject: 4649 --- html/subx/018jump_disp16.cc.html | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'html/subx/018jump_disp16.cc.html') diff --git a/html/subx/018jump_disp16.cc.html b/html/subx/018jump_disp16.cc.html index 2cbbac02..050d71eb 100644 --- a/html/subx/018jump_disp16.cc.html +++ b/html/subx/018jump_disp16.cc.html @@ -66,7 +66,7 @@ if ('onhashchange' in window) { 3 //:: jump 4 5 :(before "End Initialize Op Names(name)") - 6 put(name, "e9", "jump disp16 bytes away"); + 6 put(name, "e9", "jump disp16 bytes away"); 7 8 :(scenario jump_rel16) 9 == 0x1 @@ -82,21 +82,21 @@ if ('onhashchange' in window) { 19 :(before "End Single-Byte Opcodes") 20 case 0xe9: { // jump rel8 21 int16_t offset = imm16(); - 22 trace(90, "run") << "jump " << offset << end(); + 22 trace(90, "run") << "jump " << offset << end(); 23 EIP += offset; 24 break; 25 } 26 :(code) 27 int16_t imm16() { - 28 int16_t result = next(); - 29 result |= (next()<<8); + 28 int16_t result = next(); + 29 result |= (next()<<8); 30 return result; 31 } 32 33 //:: jump if equal/zero 34 35 :(before "End Initialize Op Names(name)") - 36 put(name_0f, "84", "jump disp16 bytes away if ZF is set"); + 36 put(name_0f, "84", "jump disp16 bytes away if ZF is set"); 37 38 :(scenario je_rel16_success) 39 % ZF = true; @@ -114,7 +114,7 @@ if ('onhashchange' in window) { 51 case 0x84: { // jump rel16 if ZF 52 int8_t offset = imm16(); 53 if (ZF) { - 54 trace(90, "run") << "jump " << NUM(offset) << end(); + 54 trace(90, "run") << "jump " << NUM(offset) << end(); 55 EIP += offset; 56 } 57 break; @@ -135,7 +135,7 @@ if ('onhashchange' in window) { 72 //:: jump if not equal/not zero 73 74 :(before "End Initialize Op Names(name)") - 75 put(name_0f, "85", "jump disp16 bytes away if ZF is not set"); + 75 put(name_0f, "85", "jump disp16 bytes away if ZF is not set"); 76 77 :(scenario jne_rel16_success) 78 % ZF = false; @@ -153,7 +153,7 @@ if ('onhashchange' in window) { 90 case 0x85: { // jump rel16 unless ZF 91 int8_t offset = imm16(); 92 if (!ZF) { - 93 trace(90, "run") << "jump " << NUM(offset) << end(); + 93 trace(90, "run") << "jump " << NUM(offset) << end(); 94 EIP += offset; 95 } 96 break; @@ -174,7 +174,7 @@ if ('onhashchange' in window) { 111 //:: jump if greater 112 113 :(before "End Initialize Op Names(name)") -114 put(name_0f, "8f", "jump disp16 bytes away if greater (ZF is unset, SF == OF)"); +114 put(name_0f, "8f", "jump disp16 bytes away if greater (ZF is unset, SF == OF)"); 115 116 :(scenario jg_rel16_success) 117 % ZF = false; @@ -194,7 +194,7 @@ if ('onhashchange' in window) { 131 case 0x8f: { // jump rel16 if !SF and !ZF 132 int8_t offset = imm16(); 133 if (!ZF && SF == OF) { -134 trace(90, "run") << "jump " << NUM(offset) << end(); +134 trace(90, "run") << "jump " << NUM(offset) << end(); 135 EIP += offset; 136 } 137 break; @@ -217,7 +217,7 @@ if ('onhashchange' in window) { 154 //:: jump if greater or equal 155 156 :(before "End Initialize Op Names(name)") -157 put(name_0f, "8d", "jump disp16 bytes away if greater or equal (SF == OF)"); +157 put(name_0f, "8d", "jump disp16 bytes away if greater or equal (SF == OF)"); 158 159 :(scenario jge_rel16_success) 160 % SF = false; @@ -236,7 +236,7 @@ if ('onhashchange' in window) { 173 case 0x8d: { // jump rel16 if !SF 174 int8_t offset = imm16(); 175 if (SF == OF) { -176 trace(90, "run") << "jump " << NUM(offset) << end(); +176 trace(90, "run") << "jump " << NUM(offset) << end(); 177 EIP += offset; 178 } 179 break; @@ -258,7 +258,7 @@ if ('onhashchange' in window) { 195 //:: jump if lesser 196 197 :(before "End Initialize Op Names(name)") -198 put(name_0f, "8c", "jump disp16 bytes away if lesser (SF != OF)"); +198 put(name_0f, "8c", "jump disp16 bytes away if lesser (SF != OF)"); 199 200 :(scenario jl_rel16_success) 201 % ZF = false; @@ -278,7 +278,7 @@ if ('onhashchange' in window) { 215 case 0x8c: { // jump rel16 if SF and !ZF 216 int8_t offset = imm16(); 217 if (SF != OF) { -218 trace(90, "run") << "jump " << NUM(offset) << end(); +218 trace(90, "run") << "jump " << NUM(offset) << end(); 219 EIP += offset; 220 } 221 break; @@ -301,7 +301,7 @@ if ('onhashchange' in window) { 238 //:: jump if lesser or equal 239 240 :(before "End Initialize Op Names(name)") -241 put(name_0f, "8e", "jump disp16 bytes away if lesser or equal (ZF is set or SF != OF)"); +241 put(name_0f, "8e", "jump disp16 bytes away if lesser or equal (ZF is set or SF != OF)"); 242 243 :(scenario jle_rel16_equal) 244 % ZF = true; @@ -335,7 +335,7 @@ if ('onhashchange' in window) { 272 case 0x8e: { // jump rel16 if SF or ZF 273 int8_t offset = imm16(); 274 if (ZF || SF != OF) { -275 trace(90, "run") << "jump " << NUM(offset) << end(); +275 trace(90, "run") << "jump " << NUM(offset) << end(); 276 EIP += offset; 277 } 278 break; -- cgit 1.4.1-2-gfad0