COP8SA-DM National Semiconductor, COP8SA-DM Datasheet - Page 158

no-image

COP8SA-DM

Manufacturer Part Number
COP8SA-DM
Description
MODULE DEBUGGING FOR COP8SA
Manufacturer
National Semiconductor
Datasheet

Specifications of COP8SA-DM

Module/board Type
Debugger Module
For Use With/related Products
Cop 8
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Other names
*COP8SA-DM
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 COP8SA-DM