English
Language : 

COP8AME9_14 Datasheet, PDF (85/102 Pages) Texas Instruments – COP8AME9 8-Bit CMOS Flash Microcontroller with 8k Memory, Dual Op Amps, Virtual EEPROM, Temperature Sensor, 10-Bit A/D and Brownout Reset
COP8AME9, COP8ANE9
www.ti.com
SNOS930F – MARCH 2001 – REVISED MARCH 2013
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
Reg/Data
Memory
B Pointer
Contents
Before
12 Hex
Contents
After
07 Hex
Indirect from Program Memory. This is a special case of an indirect instruction that allows access to data
tables stored in program memory. In the “Load Accumulator Indirect” (LAID) instruction, the upper and lower
bytes of the Program Counter (PCU and PCL) are used temporarily as a pointer to program memory. For
purposes of accessing program memory, the contents of the Accumulator and PCL are exchanged. The data
pointed to by the Program Counter is loaded into the Accumulator, and simultaneously, the original contents of
PCL are restored so that the program can resume normal execution.
Example: Load Accumulator Indirect
LAID
Reg/Data
Memory
PCU
PCL
Accumulator
Memory Location
041F Hex
Contents
Before
04 Hex
35 Hex
1F Hex
25 Hex
Contents
After
04 Hex
36 Hex
25 Hex
25 Hex
Copyright © 2001–2013, Texas Instruments Incorporated
Submit Documentation Feedback
85
Product Folder Links: COP8AME9 COP8ANE9