Table Reference Instructions - NEC PD754144 User Manual

4-bit single-chip microcontrollers
Table of Contents

Advertisement

11.4.2 Table reference instructions

MOV XA, @PCDE
Function: XA
ROM (PC
Transfers the lower 4 bits of the table data in the program memory addressed when the lower 8 bits (PC
program counter (PC) are replaced with the contents of register pair DE, to the A register, and the higher 4 bits to
the X register.
The table address is determined by the contents of the program counter (PC) when this instruction is executed.
The necessary data must be programmed to the table area in advance by using an assembler directive (DB
instruction).
The program counter is not affected by execution of this instruction.
This instruction is useful for successively referencing table data.
Example
Table address
CHAPTER 11 INSTRUCTION SET
+DE)
11-8
11
8
7
4
3
PC
D
11–8
3–0
User's Manual U10676EJ3V0UM
Program memory
0
7
E
Table data H
3–0
3
X
) of the
7-0
4
3
0
Table data L
0
3
0
A
261

Advertisement

Table of Contents
loading

This manual is also suitable for:

Pd754244

Table of Contents