TriCore
®
TC1.6P & TC1.6E
32-bit Unified Processor Core
Instruction Set
V1.0 2013-07
User Manual (Volume 2) 3-147
JZ (16-bit)
Jump if Zero (16-bit)
Description
JZD[15], disp8 (SB)
JZD[b], disp4 (SBR)
Status Flags
Examples
See Also
JGEZ (16-bit), JGTZ (16-bit), JLEZ (16-bit), JLTZ (16-bit), JNZ (16-bit)
If the contents of either D[15] (instruction format SB) or D[b] (instruction format SBR) are equal to zero, then add
the value specified by either disp8 (format SB) or disp4 (format SBR), sign-extended (disp8) or zero-extended
(disp4) and multiplied by 2, to the contents of PC, and jump to that address.
if (D[15] == 0) then PC = PC + sign_ext(disp8) * 2;
if (D[b] == 0) then PC = PC + zero_ext(disp4) * 2;
C Not set by this instruction.
V Not set by this instruction.
SV Not set by this instruction.
AV Not set by this instruction.
SAV Not set by this instruction.
jz d2, foobar
jz d15, foobar