95.

prev next contents
irem

remainder of two integers

Jasmin Syntax
     irem 
Stack

Before

After
value1
result
value2
...
...

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.

Bytecode

Type

Description
u1
irem opcode = 0x70 (112)
See Also

lrem, frem, drem


prev next contents
Java Virtual Machine, by Jon Meyer and Troy Downing, O'Reilly Associates


Java Virtual Machine
Java Virtual Machine (Java Series)
ISBN: 1565921941
EAN: 2147483647
Year: 1996
Pages: 171

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net