irem : remainder of two integers : index : visitInsn()

Description
Pops two ints off the operand stack, divides value2 by value1 (i.e. value2 / value1), computes the remainder and pushes the int remainder back onto the stack. The remainder is (value2 - ((value1 / value2) * value2)). This is used by the % operator in Java.
Exceptions
ArithmeticException - the divisor (value1) is zero.
See also
lrem frem drem
Stack
Before After
value1 result
value2 ...
... ...
Bytecode
Type Description
u1 irem opcode = 0x70 (112)