some comments, bug fix for ifne opcodes

git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@814 379699f6-c40d-0410-875b-85095c16579e
stable
jochen 26 years ago
parent cdb44a3d1e
commit 7f26d3ae15
  1. 8
      jode/jode/jvm/Interpreter.j

@ -1300,17 +1300,17 @@ ificmp:
aaload aaload
invokevirtual jode/jvm/Value/intValue()I invokevirtual jode/jvm/Value/intValue()I
dup2 dup2
if_icmplt ificmp_greater if_icmplt ificmp_greater ; Note, that operands are swapped
if_icmpeq ificmp_equal if_icmpeq ificmp_equal
ificmp_less: ificmp_less:
bipush 0x09 bipush 0x19 ; ne,lt,le
goto ificmp_final goto ificmp_final
ificmp_equal: ificmp_equal:
bipush 0x25 bipush 0x25 ; eq,ge,le
goto ificmp_final goto ificmp_final
ificmp_greater: ificmp_greater:
pop2 pop2
bipush 0x06 bipush 0x16 ; ne,ge,gt
ificmp_final: ificmp_final:
swap swap
ishl ishl

Loading…
Cancel
Save