112
4
4 Instructions4.4.1 Four Arithmetic Operations
INC: Binary number incremented by 1
◆
Overview
The INC instruction increments a binary number by 1.
INC D
Binary number
incremented by 1
Applicable model:
H3U
D Cumulative result
Address of the word element that stores the
cumulative result
16-bit instruction
(3 steps)
INC: Continuous
execution
INCP: Pulse
execution
32-bit instruction
(5 steps)
DINC:
Continuous
execution
DINCP: Pulse
execution
◆
Operands
Operand
Bit Element Word Element
System·User System·User Bit Designation Indexed Address Constant
Real
Number
D X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM
V,Z
Modication K H E
Note: The elements in gray background are supported.
◆
Function
On every execution of the INC instruction, D has its current value incremented by a value of 1.
In 16-bit operation, –32,768 is reached after 32,767 is incremented by a value of 1. In 32-bit operation,
–2,147,483,648 is reached after 2,147,483,647 is incremented by a value of 1.
This instruction does not refresh the zero ag, carry ag, and borrow ag.
Example:
M5
ǒINCP D10Ǔ
The value in D10 is incremented
by 1 each time M5 is set.