English
Language : 

COP8SGE5_14 Datasheet, PDF (60/82 Pages) Texas Instruments – COP8SG Family 8-Bit CMOS ROM Based and OTP Microcontrollers with 8k to 32k Memory, Two Comparators and USART
COP8SGE5, COP8SGE7, COP8SGH5
COP8SGK5, COP8SGR5, COP8SGR7
SNOS516E – JANUARY 2000 – REVISED APRIL 2013
www.ti.com
Reg/Data
Memory
Accumulator
Memory Location
0005 Hex
Contents
Before
XX Hex
A6 Hex
Contents
After
A6 Hex
A6 Hex
Register B or X Indirect. The memory address is specified by the contents of the B Register or X register
(pointer register). In assembly language, the notation [B] or [X] specifies which register serves as the pointer.
Example: Exchange Memory with Accumulator, B Indirect
X A,[B]
Reg/Data
Memory
Accumulator
Memory Location
0005 Hex
B Pointer
Contents
Before
01 Hex
87 Hex
05 Hex
Contents
After
87 Hex
01 Hex
05 Hex
Register B or X Indirect with Post-Incrementing/Decrementing. The relevant memory address is specified by
the contents of the B Register or X register (pointer register). The pointer register is automatically incremented or
decremented after execution, allowing easy manipulation of memory blocks with software loops. In assembly
language, the notation [B+], [B−], [X+], or [X−] specifies which register serves as the pointer, and whether the
pointer is to be incremented or decremented.
Example: Exchange Memory with Accumulator, B Indirect with Post-Increment
X A,[B+]
Reg/Data
Memory
Accumulator
Memory Location
0005 Hex
B Pointer
Contents
Before
03 Hex
62 Hex
05 Hex
Contents
After
62 Hex
03 Hex
06 Hex
Intermediate. The data for the operation follows the instruction opcode in program memory. In assembly
language, the number sign character (#) indicates an immediate operand.
Example: Load Accumulator Immediate
LD A,#05
Reg/Data
Memory
Accumulator
Contents
Before
XX Hex
Contents
After
05 Hex
Immediate Short. This is a special case of an immediate instruction. In the “Load B immediate” instruction, the
4-bit immediate value in the instruction is loaded into the lower nibble of the B register. The upper nibble of the B
register is reset to 0000 binary.
Example: Load B Register Immediate Short
LD B,#7
60
Submit Documentation Feedback
Copyright © 2000–2013, Texas Instruments Incorporated
Product Folder Links: COP8SGE5 COP8SGE7 COP8SGH5 COP8SGK5 COP8SGR5 COP8SGR7