DM-COP8/20D National Semiconductor, DM-COP8/20D Datasheet - Page 158

no-image

DM-COP8/20D

Manufacturer Part Number
DM-COP8/20D
Description
CABLE FOR DEBUG MODULE 20-DIP
Manufacturer
National Semiconductor
Datasheet

Specifications of DM-COP8/20D

Accessory Type
20-DIP Target Cable
For Use With/related Products
MetaLink Debug Module
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Other names
*DM-COP8/20D
arithmetic operations in that the result replaces the second operand rather that the first.
The following program examples illustrate “adding machine” type operations where the
result replaces the first operand. With subtraction, this entails the result replacing the
minuend rather that the subtrahend.
BINARY ADDITION
LOOP:
BINARY SUBTRACTION
LOOP:
BCD ADDITION
LOOP:
BCD SUBTRACTION
LOOP:
2-120
COP8SAx7 MICROCONTROLLER
LD
LD
RC
LD
ADC
X
IFBNE
JP
IFC
JP
LD
LD
SC
LD
X
SUBC
X
IFBNE
JP
IFNC
JP
LD
LD
RC
LD
ADD
ADC
DCOR
X
IFBNE
JP
IFC
JP
LD
LD
SC
LD
X
SUBC
DCOR
X
IFBNE
JP
IFNC
JP
B,#16
X,#24
A,[X+]
A,[B]
A,[B+]
#4
LOOP
OVFLOW
B,#010
X,#018
A,[X+]
A,[B]
A,[B]
A,[B+]
#4
LOOP
NEGRSLT ;Neg. result if no C (No C = Borrow)
B,#010
X,#018
A,[X+]
A,#066
A,[B]
A
A,[B+]
#4
LOOP
OVFLOW
B,#16
X,#24
A,[X+]
A,[B]
A,[B]
A
A,[B+]
#4
LOOP
NEGRSLT ;Neg. result if no C (No C = Borrow)
;Overflow if C
;Overflow if C

Related parts for DM-COP8/20D