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.
Incg<t><n><m>
◄Up► ◄Contents► ◄Index► ◄Back►
──P-Code Instructions───────────────────────────────────────────────────────
Syntax
Incg<t><n><m>
/* Increment global variable by specified value */
Possible Instructions
IncgBbb, IncgBwb, IncgWbb, IncgWbw, IncgWwb, IncgWww, IncgLbb, IncgLbw,
IncgLbl, IncgLwb, IncgLww, IncgLwl, IncgFbb, IncgFbw, IncgFwb, IncgHbb,
IncgHbw, IncgHwb, IncgHww
See: ◄P-Code Data Types►
◄P-Code Operands►
Description
Increment the near global variables by <m>, while the preincremented
value is stored in t. The address of the global is found relative to
pspi, which is a pointer to an internal p-code table of segment-specific
references.
t = **(pspi + <n>);
**(pspi + <n>) + <m>;
Using the increment operator in C generates this instruction. For
example,
wNG+=2
If the index <n> is specified as an immediate operand, the global
variable address can be either near or far. The decision is made by the
compiler and implemented at run time using a range check on the index.
-♦-