RETZ (return if zero)

Returns from procedure if given value is zero.

Syntax

RETZ1 value [in,1] ;code:101
RETZ2 value [in,2] ;code:102
RETZ4 value [in,4] ;code:103
RETZ8 value [in,8] ;code:104

Description

This instruction modifies control flow by setting IP to the address popped from the stack, but only if given value is zero. In this case, execution will continue from this address. This instruction allows you to return from execution a procedure.