NEC PD17062 User Manual
Page 176

176
µ
PD17062
Example 2.
;
&
SKT1
FLG1
; If FLG1 is set to 1,
BR
LCTUNE
ST
M1, R1
; data is rewritten to M1 and M2 again.
ST
M2, R2
CLR1
FLG1
;
#
LCTUNE :
Initial reception
; The last channel is received.
The channel indicated by
the contents of M1 and
M2 is received.
MAIN :
; Main processing
Channel change
; The changed channel is assigned to general-purpose
; registers R1 and R2.
;
(
SET1
FLG1
; FLG1 is set while rewriting the last channel.
;
$
ST
M1, R1
; The channel is rewritten.
;
%
ST
M2, R2
CLR1
FLG1
BR
MAIN
In this example, FLG1 is set when rewriting the last channel in
$ and %. This allows data to be rewritten
in
& again even if CE reset is applied in %.