P-Code Instructions (pcode.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
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 */
 
 
                                     -♦-