Ret
Used to return from a function or macro, optionally with a value.
ret
ret val
Returns from a function or a macro.
Instruction must not be used outside of functions and macros.
If val
is given, it will be used as the return value. In that case, this instruction must be used in a returning function. If val
is not given, it must be used in a non-returning function.
If val
is a symbol in the current scope, it is pre-emptively moved.
If provided, val
is implicitly cast to the function’s returning type.