title: java bytecode .. replacing icosnt_ with bipush<>
body: <p>I am trying to understand why when I replace the iconst_5 (08) with bipush 20 (1014) it won't work. Would it be possible to set an integer other than -1 to 5 in this case? </p>
  
  <pre><code>A7 00 07     goto                pos.00000170
  15 0E        iload               local.0E
  08           iconst_5
  6C           idiv
  36 16        istore              local.16
  2A           aload_0
  2B           iload_1
  15 16        iload               local.16
  B7 00 E9     invokespecial       void hui.surf.I.V.A(java.io.PrintWriter, int)
  84 0F 01     iinc                local.0F, 1
  </code></pre>
  
  <p>here's the decompiled snippet:</p>
  
  <pre><code>enter code here
  {       
   i6 = paramBoolean1 ? i4 / 2 : i4 / 5;
      A(paramPrintWriter, i6);
    }
  </code></pre>
  
  <p>I need to replace the integer number 5 with 20.</p>
  
  <p>If I replace 08 with 10 14 this is what the editor does:</p>
  
  <pre><code>A7 00 07    goto                pos.00000170
  15 0E   iload               local.0E
  10 14   bipush              20
  36 16   istore              local.16
  2A  aload_0
  2B  aload_1
  15 16   iload               local.16
  B7 00 E9    invokespecial       void hui.surf.I.V.A(java.io.PrintWriter, int)
  84 0F 01    iinc                local.0F, 1
  A7 FE F3    goto                pos.0000006F
  </code></pre>
  
  <p>this is what the decompiled code looks like: (JDgui decompiler)</p>
  
  <pre><code>{
    i6 = paramBoolean1 ? i4 / 2 : 20;
    A(paramPrintWriter, i6);
   }
  </code></pre>