summaryrefslogtreecommitdiff
path: root/sim/ucsim/example/banking_conf.cmd
blob: 911968429ca6bbede078913b6af0b2754bd87381 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
memory create chip bank1_chip 0x8000 8
memory create chip bank2_chip 0x8000 8
memory create chip bank3_chip 0x8000 8

memory create banker sfr 0xb1 0x03 rom 0x8000 0xffff

memory create bank rom 0x8000 0 rom_chip 0x8000
memory create bank rom 0x8000 1 bank1_chip 0
memory create bank rom 0x8000 2 bank2_chip 0
memory create bank rom 0x8000 3 bank3_chip 0

fill rom_chip 0x8000 0xffff 0
fill bank1_chip 0 0x7fff 0
fill bank2_chip 0 0x7fff 0
fill bank3_chip 0 0x7fff 0

set hardware simif xram 0xffff