Java Virtual Machine (Java Series)
iushr
iushr Stack
Before | After |
| value1 | result |
| value2 | ... |
| ... |
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) |
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
Категории