qa.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.
ENTER
   Summary  Detail  Key to Flags
──────────────────────────────────────────────────────────────────────────────
 
Make Stack Frame                                 Flags:  O D I T S Z A P C
80186/286/386 Only                                       ═════════════════
 
Syntax:  ENTER bytes,nesting
 
  Creates a stack frame for a procedure that receives parameters passed on
  the stack. The BP register is pushed and BP is set as the stack
  frame through which parameters and local variables can be accessed. The
  first operand of the ENTER instruction specifies the number of bytes
  to reserve for local variables. The second operand specifies the nesting
  level for the procedure. The nesting level should be 0 for languages that
  do not allow access to local variables of higher level procedures (such as
  C, BASIC, and FORTRAN). See the complementary instruction LEAVE for a
  method of exiting from a procedure.
                                    -♦-