NEC 78K0 Series User Manual page 94

8-bit single-chip microcontrollers
Hide thumbs Also See for 78K0 Series:
Table of Contents

Advertisement

CHAPTER 4 MEMORY BANK SELECT FUNCTION (
• Software example
RAMD
DSEG
SADDR
R_BNKA:
DS
2
R_BNKN:
DS
1
MOV
R_BNKN,#BANKNUM TEST
MOVW
R_BNKA,#TEST
BR
!BNKBR
:
:
BNKC
CSEG
AT
BNKBR:
MOV
A,R_BNKN
MOV
BANK,A
MOVW
AX,R_BNKA
BR
AX
BN3
CSEG
BANK3
TEST:
MOV ⋅⋅⋅
:
:
END
Remark
In the software example above, the AX register is destructed.
94
; Secures RAM for specifying a memory bank at the branch destination.
; Secures RAM for specifying a memory bank number at the branch destination.
; Stores the memory bank number at the branch destination in RAM.
; Stores the address at the branch destination in RAM.
; Branches to inter-memory bank branch processing.
7000H
;
;
; Specifies the memory bank number at the branch destination.
; Specifies the address at the branch destination.
; Branch
Preliminary User's Manual U17260EJ3V1UD
µ
PD78F0536, 78F0537, AND 78F0537D ONLY)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents