100.

prev next contents
iushr

integer logical shift right

Jasmin Syntax
     iushr 
Stack

Before

After
value1
result
value2
...
...

Description

Pops two ints off the operand stack. Shifts value1 right by the amount indicated in the five low bits of value2. The int result is then pushed back onto the stack.

value1 is shifted logically (ignoring the sign extension - useful for unsigned values).

Example

 ; This is like the Java code: ;      int x; ;      x >>>= 3; ; iload_1          ; load local variable 1 onto stack iconst_3         ; push the integer 3 onto the stack iushr            ; logical shift right istore_1         ; store the result in local variable 1 

Bytecode

Type

Description
u1
iushr opcode = 0x7C (124)
See Also

ishl, ishr, lshl, lshr, lushr, iand, land, ior, lor, ixor, lxor


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