SPLat Logo

RetIfZ

NOTICE: Our web site is being updated, but is currently experiencing extreme slowness due to host issues. Please contact us directly.
NOTICE: SPLat Controls has moved. We are now at 1/85 Brunel Rd, Seaford, 3198. map
SPLat will be shut down for the Christmas Holiday season from Friday 20 December 2024 through Tuesday 7 January 2025. We will check emails periodically and will continue to process orders but at a slower pace. Santa hat

RetIfZ

PC = (X == 0) ? {call stack - 1} : (PC + 1); X=Y; Y=Z; Z=T

Tests contents of X and Pops stack. Then, if X was zero (or False), returns program flow to the line following the most recently executed GoSub instruction.

If a return is attempted when there was no matching GoSub, the SPLat/PC simulator reports an error and the SPLat hardware resets.

This instruction has the alias (alternative name) RetIfF

See also Return, RetIfNZ, RetIfT, RetIfF, Gosub, GoSubIfZ, GoSubIfNZ, GoSubIfT, GoSubIfF