NEC PD754144 User Manual page 68

4-bit single-chip microcontrollers
Table of Contents

Advertisement

The contents of the data memory are undefined at reset. Therefore, they must be initialized at the beginning of
program execution (RAM clear). Otherwise, unexpected bugs may occur.
Example To clear RAM at addresses 000H to 07FH
SET1
SEL
MOV
MOV
RAMC0 :
MOV
INCS
BR
INCS
NOP
SKE
BR
Note Data memory addresses 000H to 003H are not cleared because they are used as general-purpose register
pairs XA and HL.
68
CHAPTER 4 INTERNAL CPU FUNCTION
MBE
MB0
XA, #00H
HL, #04H
@HL, A
; Clears 004H to 07FH
; L ← L+1
L
RAMC0
; H ← H+1
H
H, #08H
RAMC0
User's Manual U10676EJ3V0UM
Note

Advertisement

Table of Contents
loading

This manual is also suitable for:

Pd754244

Table of Contents