EasyManua.ls Logo

Thinget XC3-24RT-E - [Inc] & [Dec]

Default Icon
283 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Applied Instructions
INC D0
X0
D·
DEC D0
X1
D·
Function & Action
(D0)+1→(D0)
(D0)-1→(D0)
z On every execution of the instruction the device specified as the destination has its
current value incremented (increased) by a value of 1.
z In 16 bits operation, when +32,767 is reached, the next increment will write -32,767 to
the destination device. In this case, there’s no additional flag to identify this change in the
counted value.
D·
z On every execution of the instruction the device specified as the destination has its
current value decremented (decreased) by a value of 1.
z When -32,768 or -2,147,483,648 is reached, the next decrement will write +32,767
or +2,147,483,647 to the destination device.
D·
1、Increment [INC]
2、Decrement [DEC]
[INC] & [DEC]
16 bits instruction:INC、DEC 32 bits instruction:DINC、DDEC
Suitable Models:
XC1、XC3、XC5
Zero M8020
Borrow M8021
Flag
Carry M8022
¾
Word
Device
Bit
Device
X
Y
M
S
T
C
Dn.m
D
FD
DM
DX
DY
DS
TD
CD
K/H
D·
95

Table of Contents