Java Virtual Machine (Java Series)

prev next contents
l2i

long to integer conversion

Jasmin Syntax

l2i Stack

Before

After
long-word1 integer
long-word2 ...
...
Description

Pops a long integer off of the stack, discards the most significant 32 bits, and pushes the low 32 bits onto the stack as an int. This may cause the magnitude or sign of the value to change.

Bytecode

Type

Description
u1 l2i opcode = 0x88 (136)
See Also

l2f, l2d


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

Категории