Ret (return from call) – Echelon Neuron User Manual
Page 121

RET (Return from Call)
The RET instruction performs a return-from-call operation. The RET
instruction uses the implicit addressing mode.
The RET instruction applies to Series 3100, 5000, and 6000 devices.
Syntax:
The RET instruction requires no operands:
RET
Table 45 describes the attributes of the RET instruction.
Table 45. RET Instruction
Instruction
Hexadecimal
Opcode
Instruction
Size (Bytes)
CPU Cycles
Required
Affect on
Carry Flag
RET
31
1
4
None
Example:
The following example calls a function named clearFlags. After the function
completes, the RET instruction returns from the function, and the function
continues operation with the instruction that follows CALL instruction.
call clearFlags ; ( )
...
br somewhere
clearFlags
...
ret ; return to caller
Neuron Assembly Language Reference
111