ret

Operands

ret cc | ret

If the zero flag is unset, the top stack entry is popped into PC.

Loading...

Variants

Every form of ret the assembler accepts. The cycles column counts clock cycles, written as taken/not taken for the conditional forms.

InstructionDescriptionFlagsBytesCycles
ret nz

If the zero flag is unset, the top stack entry is popped into PC.

111/5
ret z

If the zero flag is set, the top stack entry is popped into PC.

111/5
ret

The top stack entry is popped into PC.

110
ret nc

If the carry flag is unset, the top stack entry is popped into PC.

111/5
ret c

If the carry flag is set, the top stack entry is popped into PC.

111/5
ret po

If the parity/overflow flag is unset, the top stack entry is popped into PC.

111/5
ret pe

If the parity/overflow flag is set, the top stack entry is popped into PC.

111/5
ret p

If the sign flag is unset, the top stack entry is popped into PC.

111/5
ret m

If the sign flag is set, the top stack entry is popped into PC.

111/5