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