Example Of Operation When Mpe=0 And Ixe=0; Example Of Operation When Mpe=1 And Ixe=0; Example Of Operation When Mpe=0 And Ixe=1 - NEC mPD17120 Subseries User Manual

4-bit single-chip microcontroller
Table of Contents

Advertisement

Figure 7-12. Example of Operation When MPE=0 and IXE=1
0
1
2
3
0
1
2
3
4
Index modification
M034 : 00000110100B
5
OR)
IX
: 00000000001B
6
Real address 00000110101B
7
Example 3. Clearing all data memory (setting to 0)
M000
MEM
MOV
MOV
MOV
LOOP:
OR
MOV
INC
AND
SKE
BR
CHAPTER 7 SYSTEM REGISTER (SYSREG)
Column address
4
5
6
7
8
9
8
R005
Column address specified
as transfer destination
M034
Example 2.
MOV @R005, M034
Direct
Indirect address
address
System register
0.00H
IXL, #0
IXM, #0
IXH, #0
PSW, #.DF.IXE AND 0FH
M000, #0
IX
PSW, #1110B
IXM, #0111B
LOOP
A
B
C
D
E
F
IX ← 0
;
;
MPE ← 0
;
IXE ← 1
;
;
Set data memory specified by IX to 0
IX ← IX+1
;
IXE ← 0: IXE is set to 0 so that
;
;
address 7FH is not modified by IX.
;
Row address 7?
;
If not 7 then LOOP (row address is
;
not cleared)
General
register
57

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mpd17120Mpd17121Mpd17132Mpd17133Mpd17p132Mpd17p133

Table of Contents