EasyManua.ls Logo

Omron C200H - Page 195

Omron C200H
374 pages
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...
182
HR 11, and either #0000 or #0001 is placed in HR 12 (0001 indicates a nega-
tive answer).
CLC(41)
00000
SBB(51)
010
DM 0100
HR 10
MOV(21)
#0000
HR 12
MOV(21)
#0001
HR 12
TR 0
25504
25504
SBB(51)
011
DM 0101
HR 11
CLC(41)
25504
SBB(51)
#0000
HR 10
HR 10
SBB(51)
#0000
HR 11
HR 11
Address Instruction Operands
00000 LD 00000
00001 OUT TR 0
00002 CLC(41)
00003 SBB(51)
010
DM 0100
HR 10
00004 SBB(51)
011
DM 0101
HR 11
00005 AND 25505
00006 CLC(41)
00007 SBB(51)
# 0000
HR 10
HR 10
00008 SBB(51)
# 0000
HR 11
HR 11
00009 LD TR 0
00010 AND NOT 25504
00011 MOV(21)
# 0000
HR 12
00012 LD TR 0
00013 AND 25504
00014 MOV(21)
# 0000
HR 12
In the case below, 20F55A10 – B8A360E3 = 97AE06D3. In the the lower
4-digit subtraction, Su > Mi, so CY(SR 25504) becomes 1, and the result of
the higher 4-digit subtraction is decremented by 1. In the final calculations,
#0000 – F9D2 = 0000 + (10000 – F9D2) = 06D3.
Binary Calculations Section 5-18

Table of Contents

Related product manuals