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.
MulWWL
                                              Up Contents Index Back
──P-Code Instructions───────────────────────────────────────────────────────
 
  Syntax
 
  MulWWL
 
  /* Multiply top two words and push long result */
 
  Description
 
  Pops two words from the stack, multiplies them, and pushes a long result
  onto the stack.
 
  Pseudocode equivalent:
 
  w2 = PopW();
  w1 = PopW();
  l = w1 * w2;
  PushL(l);
 
  This instruction is generated as follows:
 
  int w1, w2;
  long l;
  l = ((long)w1 * (long)w2); /* generates MulWWL */
 
 
                                     -♦-