1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
6 <title>if-<test>z</title>
7 <link rel=stylesheet href="opcode.css">
12 <h1>if-<test>z</h1>
17 Branch to the given destination if the given register's value compares with 0
21 Note: The branch offset may not be 0. (A spin loop may be legally constructed
22 either by branching around a backward goto or by including a nop as a target
28 <table class="instruc">
31 <th>Op & Format</th>
32 <th>Mnemonic / Syntax</th>
39 <td>if-<i>test</i>z vAA, +BBBB<br/>
47 <td><code>A:</code> register to test (8 bits)<br/>
48 <code>B:</code> signed branch offset (16 bits)</td>
57 A must be a valid register index for the current stackframe.
60 Register vA must not contain a reference value.
63 Register vA must not be part of a register pair.
66 Register vA must not contain a floating point value (???).
77 The value of register vA is compared to zero according to the <test>
78 condition. Two results are possible:
81 The condition holds. The value of B is used as a signed offset to the
82 address of the if-<test>z instruction. Execution continues at the
86 The condition does not hold. Execution continues at the instruction
87 following the if-<test>z instruction.