
ICE Emulator for 8051
35
©1989-2019 Lauterbach GmbH
This example uses a common program area on 0--7fffh and a banked area from 8000--ffff with 4 banks.
The translation from logical banks to physical banks is as follows:
logical 0 -> physical 7
logical 1 -> physical 4
logical 2 -> physical 5
logical 3 -> physical 2
system.bankfile banksel.bnk
system.mode ai
; load bank file (uses
; physical banks)
map.res
map.mirror p:0x0--0x7fff p:0x70000
map.mirror p:0x0--0x7fff p:0x40000
map.mirror p:0x0--0x7fff p:0x50000
map.mirror p:0x0--0x7fff p:0x20000
; reset mapper
; mirror for common area
map.ram p:0--0ffff
map.ram p:78000--7ffff
map.ram p:48000--4ffff
map.ram p:58000--5ffff
map.ram p:28000--2ffff
map.intern
; map memory in (physical)
; banks
symbol.reset
mmu.reset
mmu.create p:00000--07fff p:00000--07fff
mmu.create p:08000--0ffff p:78000--7ffff
mmu.create p:00000--07fff p:70000--77fff
mmu.create p:18000--1ffff p:48000--4ffff
mmu.create p:00000--07fff p:40000--47fff
mmu.create p:28000--2ffff p:58000--5ffff
mmu.create p:00000--07fff p:50000--57fff
mmu.create p:38000--3ffff p:28000--2ffff
mmu.create p:00000--07fff p:20000--27fff
mmu.on
d.load.o applic.omf /ext /p /nc
; load file from BL51 (KEIL)