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.
PopIP<n>
                                              Up Contents Index Back
──P-Code Instructions───────────────────────────────────────────────────────
 
  Syntax
 
  PopIP<n>
 
  /* Branch indirect through near pointer on top of stack. */
 
  See: P-Code Operands
 
  Description
 
  Implements the break statement within a switch statement. Prior to
  exection of a Case<t> instruction, a PushIP instruction is issued which
  loads the target of a break statement onto the stack. When a break
  statement is encountered, the value is popped from the stack and loaded
  into the instruction pointer.
 
  Pseudocode equivalent:
 
  IP = PopW();
 
  Example:
 
  switch (w)
  {
  case 1:
  break;    /* generate PopIP */
  }
 
 
                                     -♦-