P-Code Instructions (pcode.hlp) (Table of Contents; Topic list)
Ret
                                              Up Contents Index Back
──P-Code Instructions───────────────────────────────────────────────────────
 
  Syntax
 
  Ret
 
  /* Return from function call */
 
  Description
 
  Returns from a function to the caller. The instruction assumes that
  there is a 32-bit return value on the top of the stack. It is up to the
  caller of the function to determine how many of the bytes of the return
  value are valid.
 
  This instruction will also pop parameters off of the stack. The number
  of words of parameters to be popped off is kept in an internal p-code
  table specific to the procedure, or stored in a byte or word following
  the call.
 
  Pseudocode equivalent:
 
  return lTest;                 /* generates Ret */
 
 
                                     -♦-