iremStack
Before | After |
value1 | result |
value2 | ... |
... |
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.
Bytecode Type
See Also Description u1 irem opcode = 0x70 (112)
lrem, frem, drem