Texas Instruments TMS320C2XX Calculator User Manual


 
Table Write
TBLW
7-189
Assembly Language Instructions
Syntax TBLW
dma
Direct addressing
TBLW
ind
[, AR
n
] Indirect addressing
Operands dma: 7 LSBs of the data-memory address
n: Value from 0 to 7 designating the next auxiliary register
ind: Select one of the following seven options:
* *+ *– *0+ *0– *BR0+ *BR0–
TBLW
dma
1514131211109876543210
1
01001110 dma
TBLW
ind
[, AR
n
]
1514131211109876543210
1
01001111 ARU N NAR
Note: ARU, N, and NAR are defined in Section 6.3,
Indirect Addressing Mode
(page 6-9).
Execution Increment PC, then ...
(PC+1) MSTACK
(ACC(15:0)) PC+1
(data-memory address) pma,
For indirect, modify (current AR) and (ARP) as specified
(PC) + 1 PC
While (repeat counter) 0
(data-memory address) pma,
For indirect, modify (current AR) and (ARP) as specified
(PC) + 1 PC
(repeat counter) –1 repeat counter.
(MSTACK) PC+1
Status Bits None
Description The TBLW instruction transfers a word in data memory to program memory.
The data-memory address is specified by the instruction, and the program-
memory address is specified by the lower 16 bits of the accumulator. A read
from data memory is followed by a write to program memory to complete the
instruction. When repeated with the repeat (RPT) instruction, TBLW effectively
becomes a single-cycle instruction, and the program counter that was loaded
with (ACC(15:0)) is incremented once each cycle.
Words 1
Opcode