Site Tools


Sidebar

Smart Card Solution

User Manual

JavaCard API Samples

Java Card Specification

Knowledge Sharing

javacard:jcvm:7.5.42_ifnonnull_w

7.5.42 ifnonnull_w

Branch if reference not null (wide index)

Format

ifnonnull_w

branchbyte1

branchbyte2

Forms

ifnonnull_w = 159 (0x9f)

Stack

…, value → …

Description

The value must be of type reference. It is popped from the operand stack. If the value is not null, the unsigned bytes branchbyte1 and branchbyte2 are used to construct a signed 16-bit branchoffset, where branchoffset is (branchbyte1 « 8) | branchbyte2. Execution proceeds at that offset from the address of the opcode of this ifnonnull_w instruction. The target address must be that of an opcode of an instruction within the method that contains this ifnonnull_w instruction.

Otherwise, execution proceeds at the address of the instruction following this ifnonnull_w instruction.

javacard/jcvm/7.5.42_ifnonnull_w.txt · Last modified: 2017/05/13 04:11 (external edit)