NEC PD754144 User Manual page 38

4-bit single-chip microcontrollers
Table of Contents

Advertisement

CHAPTER 3 FEATURES OF ARCHITECTURE AND MEMORY MAP
Examples 1. To compare data 50H to 57H with data 60H to 67H
DATA1 EQU
DATA2 EQU
LOOP : MOV
2. To clear data memory of 004H to 07FH
LOOP : MOV
38
57H
67H
SET1
MBE
SEL
MB0
MOV
D, #DATA1 SHR 4
MOV
HL, #DATA2 AND 0FFH
A, @DL
SKE
A, @HL
; A = (HL)?
BR
NO
; NO
; YES, L ← L – 1
DECS L
BR
LOOP
CLR1
RBE
CLR1
MBE
MOV
XA, #00H
MOV
HL, #04H
; (HL) ← A
@HL, A
; L ← L+1
INCS
L
BR
LOOP
; H ← H+1
INCS
H
NOP
SKE
H, #08H
BR
LOOP
User's Manual U10676EJ3V0UM

Advertisement

Table of Contents
loading

This manual is also suitable for:

Pd754244

Table of Contents