JVM Knowledge

sipush

Raw .md Oracle

Operation

Push short

Format

sipush
byte1
byte2

Forms

sipush = 17 (0x11)

Operand Stack

... →

..., value

Description

The immediate unsigned byte1 and byte2 values are assembled into an intermediate short, where the value of the short is (byte1 << 8) | byte2. The intermediate value is then sign-extended to an int value. That value is pushed onto the operand stack.