![Omron CJ1G-CPUxx Instructions Manual Download Page 296](http://html1.mh-extra.com/html/omron/cj1g-cpuxx/cj1g-cpuxx_instructions-manual_742491296.webp)
275
Comparison Instructions
Section 3-7
Description
ZCP(088) compares the 16-bit signed binary data in CD with the range
defined by LL and UL and outputs the result to the Greater Than, Equals, and
Less Than Flags in the Auxiliary Area. (The Less Than or Equal, Greater
Than or Equal, and Not Equal Flags are left unchanged.)
Arithmetic Flag Status
The following table shows the status of the Arithmetic Flags after execution of
ZCP(088).
Using ZCP(088) Results in the Program
When ZCP(088) is executed, the result is reflected in the Arithmetic Flags.
Control the desired output or right-hand instruction with a branch from the
same input condition that controls ZCP(088), as shown in the following dia-
gram. In this case, the Equals Flag and output A will be turned ON when
LL
≤
CD
≤
UL.
EM Area with bank
En_00000 to En_32767
(n = 0 to C)
Indirect DM/EM
addresses in binary
@ D00000 to @ D32767
@ E00000 to @ E32767
@ En_00000 to @ En_32767
(n = 0 to C)
Indirect DM/EM
addresses in BCD
*D00000 to *D32767
*E00000 to *E32767
*En_00000 to *En_32767
(n = 0 to C)
Constants
#0000 to #FFFF
(binary)
Data Registers
DR0 to DR15
Index Registers
---
Indirect addressing using
Index Registers
,IR0 to ,IR15
–2048 to +2047 ,IR0 to –2048 to +2047 ,IR15
DR0 to DR15, IR0 to IR15
,IR0+(++) to ,IR15+(++)
,–(– –)IR0 to, –(– –)IR15
Area
CD
LL
UL
ZCP(088)Result
Flag status
>
=
<
CD > UL
ON
OFF
OFF
CD = UL
OFF
ON
LL < CD < UL
CD = LL
CD < LL
OFF
ON
Summary of Contents for CJ1G-CPUxx
Page 3: ...iv N o t i c e ...
Page 5: ...vi ...
Page 21: ...xxii Conformance to EC Directives 6 ...
Page 35: ......
Page 1131: ...1110 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...