Introduction to Virtual Machine and API Programming • 805
Value of iinc instruction is incremented by the value byte2, where byte2 is treated as a signed 8-bit
quantity.
The last instruction of the above bytecode is goto instruction, which is given at line-62 as given
below:
62: goto 26
There are two versions of goto statement: goto -no change and goto -no change.
The goto instruction is also used for transferring control. Byte1 and byte2 are used to construct a signed
16-bit/32-bit offset. For goto statement, execution starts at that particular offset from the register pc.
24.8 SWITCH STATEMENTS AND VIRTUAL MACHINE
There ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.