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.
Ldin<t><n>
                                              Up Contents Index Back
──P-Code Instructions───────────────────────────────────────────────────────
 
  Syntax
 
  Ldin<t><n>
 
  /* Load indirect using near pointer. */
 
  Possible Instructions
 
  LdinB0..LdinB4, LdinBb, LdinD, LdinW0...LdinW7, LdinWb, LdinL0, LdinLb,
  LdinR, LdinT
 
  See: P-Code Data Types
       P-Code Operands
 
  Description
 
  Loads an indirect item of type <t> onto the stack. The word on the stack
  is taken to be a word pointer, and the increment <n> can be used to
  address a field in a data structure.
 
  Pseudocode equivalent:
 
  p<t> = PopW() + sizeof(<t>) * <n>;
  Push<t>(*p<t>);
 
  Comparing a word pointer to another value is one way to produce the
  LdinW<n> instruction:
 
  *pw = 8;
  if (*pw != 8)            /* generates LdinW<n> */
 
 
                                     -♦-