89.

prev next contents
iand

integer bitwise and

Jasmin Syntax
     iand 
Stack

Before

After
value1
result
value2
...
...

Description

Computes the bitwise and of value1 and value2 (which must be ints). The int result replaces value1 and value2 on the stack.

Example

 ; This is like the Java code: ;       int x; ;       x &= 2; ; iload_1          ; push integer in local variable 1 onto stack iconst_2         ; push the integer 2 onto the stack iand             ; compute the bitwise and istore_1         ; store the result in local variable 1 
Bytecode

Type

Description
u1
iand opcode = 0x7E (126)
See Also

ishl, ishr, iushr, lshl, lshr, lushr, 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