Omron CS1G/H-CPUxxH Instructions Manual page 510

Sysmac cs series; sysmac cj series
Hide thumbs Also See for CS1G/H-CPUxxH:
Table of Contents

Advertisement

Logic Instructions
Description
Flags
Precautions
Examples
Area
EM Area without bank
EM Area with bank
Indirect DM/EM
addresses in binary
Indirect DM/EM
addresses in BCD
Constants
Data Registers
Index Registers
Indirect addressing
using Index Registers
COM(029) reverses the status of every specified bit in Wd.
Wd → Wd: 1 → 0 and 0 → 1
Note When using the COM instruction, be aware that the status of each bit will
change each cycle in which the execution condition is ON.
Name
Error Flag
ER
Equals Flag
=
Negative Flag
N
When COM(029) is executed, the Error Flag will turn OFF.
If as a result of COM, the content of R is 0000 Hex, the Equals Flag will turn
ON.
If as a result of COM, the leftmost bit of R is 1, the Negative Flag will turn ON.
When CIO 000000 is ON in the following example, the status of each bit will
be D00100 is reversed.
E00000 to E32767
En_00000 to En_32767
(n = 0 to C)
@ D00000 to @ D32767
@ E00000 to @ E32767
@ En_00000 to @ En_32767
(n = 0 to C)
*D00000 to *D32767
*E00000 to *E32767
*En_00000 to *En_32767
(n = 0 to C)
---
DR0 to DR15
---
,IR0 to ,IR15
–2048 to +2047 ,IR0 to –2048 to +2047 ,IR15
DR0 to DR15, IR0 to IR15
,IR0+(++) to ,IR15+(++)
,–(– –)IR0 to, –(– –)IR15
Label
OFF
ON when the result is 0.
OFF in all other cases.
ON when the leftmost bit of R is 1.
OFF in all other cases.
Section 3-13
Wd
Operation
489

Advertisement

Table of Contents
loading

Table of Contents