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

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
Syntax:
Description:
Operation:
DRSZ REG#
Instruction
DRSZ REG#
This instruction decrements the contents of the selected memory regis-
ter (selected by #, where # = 0 to F) and places the result back in the
same register. If the result is zero, the next instruction is skipped. This
instruction is useful where it is desired to repeat an instruction sequence
a given number of times. The desired number of times that the instruc-
tion sequence is to be executed is placed in a register, and a DRSZ in-
struction with that register is coded at the end of the sequence followed
by a JP (Jump Relative) instruction that branches back to the start of
the instruction sequence. The JP branch-back instruction is executed
each time around the instruction sequence loop until the register count
is decremented down to zero, at which time the JP instruction is skipped
as the program branches (skips) out of the loop.
REG <- REG - 1
IF (REG - 1) = 0,
THEN SKIP NEXT INSTRUCTION
Register Direct (Implicit)
Addressing Mode
Instruction
Cycles
COP8SAx7 MICROCONTROLLER
3
Bytes Hex Op Code
1
C (REG#)
2-71

Related parts for COP8SA-DM