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.
Incf<t><n><m>
◄Up► ◄Contents► ◄Index► ◄Back►
──P-Code Instructions───────────────────────────────────────────────────────
Syntax
Incf<t><n><m>
/* Increment frame variable by specified value */
Possible Instructions
IncfBbb, IncfBwb, IncfWbb, IncfWbw, IncfWwb, IncfWww, IncfLbb, IncfLbw,
IncfLbl, IncfLwb, IncfLww, IncfLwl, IncfFbb, IncfFbw, IncfFwb, IncfHbb,
IncfHbw, IncfHwb, IncfHww
See: ◄P-Code Data Types►
◄P-Code Operands►
Description
Increment a frame variable by <m>, while the preincremented value is
stored in the p-code temporary register t.
Pseudocode equivalent:
// when <n> is a byte <b>
t = *(bp + (2 * (<b> | 0xff00));
*(bp + (2 * (<b> | 0xff00)) += <m>;
// when <n> is a word w
t = *(bp + (2 * w));
*(bp + (2 * w)) += <m>;
Using the increment operator (+=) in C generates this instruction.
-♦-