NEC PD754144 User Manual page 262

4-bit single-chip microcontrollers
Table of Contents

Advertisement

Caution
The MOVT XA, @PCDE instruction usually references the table data in page where the instruction exists. If the
instruction is at address ××FFH, however, the table data in the next page is referenced instead of the table data in
the page where the instruction exists.
For example, if the MOVT XA, @PCDE instruction is located at position a in the above figure, the table data in
page 3, not page 2, specified by the contents of register pair DE is transferred to register pair XA.
Application example
To transfer the 16-byte data at program memory addresses 0×F0H to 0×FFH to data memory addresses 30H to
4FH
SUB:
LOOP:
262
CHAPTER 11 INSTRUCTION SET
Page 2
02FFH
0300H
Page 3
SEL
MB0
MOV
HL, #30H
MOV
DE, #0F0H
MOVT
XA, @PCDE
MOV
@HL, XA
INCS
HL
INCS
HL
INCS
E
BR
LOOP
RET
ORG
0×F0H
××H, ××H, ...
DB
User's Manual U10676EJ3V0UM
Program memory
7
0
a
; HL
30H
; DE
F0H
; XA
table data
; (HL)
XA
; HL
HL+2
; E
E+1
; table data

Advertisement

Table of Contents
loading

This manual is also suitable for:

Pd754244

Table of Contents