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.
Callxbb
                                              Up Contents Index Back
──P-Code Instructions───────────────────────────────────────────────────────
 
  Syntax
 
  Callxbb
 
  /* Call a virtual function */
 
  Calls a virtual function. A pointer to the instance is expected to be on
  the stack. (The size of the pointer is near or far according to the
  class def.) The 2 or 3 bytes following the opcode contain the following
  values:
 
       * bit 7: 0 = near class, 1 = far class
         bits 4-6: unused (!)
         bits 0-3: "call mode" specifying the
               calling convention and return
               value size. The encoding of a
               "call mode" is the same as the
               existing encoding defined by the
               interpreter (and designed for
               fast execution).
       * A signed offset within the vtable, used
         to locate the function pointer.
       * [if cdecl] Parameter size to be popped on
         return.
 
 
                                     -♦-