Omron CS1G/H-CPUxxH Instructions Manual page 417

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

Advertisement

Symbol Math Instructions
Description
Flags
396
Area
DM 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
–CL(413) subtracts the binary values in Su and Su+1 and CY from Mi and
Mi+1, and outputs the result to R, R+1. When the result is negative, it is output
to R, R+1 as a 2's complement.
Mi+1
Su+1
CY will turn
ON when there
R+1
CY
is a borrow.
Name
Label
Error Flag
ER
Equals Flag
=
Carry Flag
CY
Overflow Flag
OF
Underflow Flag
UF
Negative Flag
N
Mi
D00000 to D32766
E00000 to E32766
En_00000 to En_32766
(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)
#00000000 to #FFFFFFFF
(binary)
---
---
,IR0 to ,IR15
–2048 to +2047 ,IR0 to –2048 to +2047 ,IR15
DR0 to DR15, IR0 to IR15
,IR0+(++) to ,IR15+(++)
,–(– –)IR0 to, –(– –)IR15
(Signed binary)
Mi
(Signed binary)
Su
CY
(Signed binary)
R
Operation
OFF
ON when the result is 0.
OFF in all other cases.
ON when the results in a borrow.
OFF in all other cases.
ON when the result of subtracting a negative number and
CY from a positive number is in the range 80000000 to
FFFFFFFF hex.
OFF in all other cases.
ON when the result of subtracting a positive number and
CY from a negative number is in the range 00000000 to
7FFFFFFF hex.
OFF in all other cases.
ON when the leftmost bit of the result is 1.
OFF in all other cases.
Section 3-11
Su
R
---

Advertisement

Table of Contents
loading

Table of Contents