TMP91C824
91C824-119
2008-02-20
;BANK Operation
;
*****
CS2
*****
ORG 000000H
; Program ROM: Start address at BANK0 of LOCAL2
ORG 200000H
; Program ROM: Start address at BANK1 of LOCAL2
NOP
; Operation at BANK1of LOCAL2
~
JP E00100H
; Jump to BANK7 (
=
COMMON2) of LOCAL2
ORG 400000H
; Program ROM: Start address at BANK2 of LOCAL2
ORG 600000H
; Program ROM: Start address at BANK3 of LOCAL2
NOP
; Operation at BANK3 of LOCAL2
~
JP E00200H
; Jump to BANK7 (
=
COMMON2) of LOCAL2
ORG 800000H
; Program ROM: Start address at BANK4 of LOCAL2
ORG a00000H
; Program ROM: Start address at BANK5 of LOCAL2
ORG c00000H
; Program ROM: Start address at BANK6 of LOCAL2
!!!! Program Start !!!!
ORG E00000H
;
Program ROM: Start address at BANK7 (
=
COMMON2) of LOCAL2
; Logical address E00000H to FFFFFFH
; Physical address 0E00000H to 0FFFFFFH
LD
(LOCAL2),81H ; LOCAL2 BANK1 set 20xxxxH
JP
C00000H
; Jump to BANK1 (200000H: Physical address) of LOCAL2
~
ORG E00100H
LD
(LOCAL2),83H ; LOCAL2 BANK3 set 60xxxxH
JP
C00000H
; Jump to BANK3 (600000H: Physical address) of LOCAL2
~
ORG E00200H
LD
(LOCAL1),84H ; LOCAL1 BANK4 set 80xxxxH
JP
400000H ;
Jump to BANK4 (800000H: Physical address) of LOCAL1
ORG FFFFFFH
;
Program ROM: End address at BANK7 (
=
COMMON2) of LOCAL2
;
*****
CS1
*****
ORG 000000H
; Program ROM: Start address at BANK0 of LOCAL1
ORG 200000H
; Program ROM: Start address at BANK1 of LOCAL1
ORG 400000H
; Program ROM: Start address at BANK2 of LOCAL1
ORG 600000H
;
Program ROM: Start address at BANK3 (
=
COMMON1) of LOCAL1
LD
(LOCAL1),87H ; LOCAL1 BANK7 set E0xxxxH
JP
400000H
; Jump to BANK7 (E00000H: Physical address) of LOCAL1
ORG 800000H
; Program ROM: Start address at BANK4 of LOCAL1
NOP
; Operation at BANK4 of LOCAL1
~
JP 600000H
; Jump to BANK3 (
=
COMMON1) of LOCAL1
ORG a00000H
; Program ROM: Start address at BANK5 of LOCAL1
ORG c00000H
; Program ROM: Start address at BANK6 of LOCAL1
ORG E00000H
; Program ROM: Start address at BANK7 of LOCAL1
LD
(LOCAL1),80H ; LOCAL1 BANK0 set 00xxxxH
JP
400000H
; Jump to BANK0 (000000H: Physical address) of LOCAL1
ORG FFFFFFH
; Program ROM: End address at BANK7 of LOCAL1
Figure 3.8.6 BANK Operation S/W Example 3
It’s prohibit to set other BANK setting in except common area
Program run away