summaryrefslogtreecommitdiff
path: root/sim/ucsim/example/banking_conf.cmd
diff options
context:
space:
mode:
authorXavier ASUS <xavi92psx@gmail.com>2019-10-18 00:31:54 +0200
committerXavier ASUS <xavi92psx@gmail.com>2019-10-18 00:31:54 +0200
commit268a53de823a6750d6256ee1fb1e7707b4b45740 (patch)
tree42c1799a9a82b2f7d9790ee9fe181d72a7274751 /sim/ucsim/example/banking_conf.cmd
downloadsdcc-gas-268a53de823a6750d6256ee1fb1e7707b4b45740.tar.gz
sdcc-3.9.0 fork implementing GNU assembler syntax
This fork aims to provide better support for stm8-binutils
Diffstat (limited to 'sim/ucsim/example/banking_conf.cmd')
-rw-r--r--sim/ucsim/example/banking_conf.cmd17
1 files changed, 17 insertions, 0 deletions
diff --git a/sim/ucsim/example/banking_conf.cmd b/sim/ucsim/example/banking_conf.cmd
new file mode 100644
index 0000000..9119684
--- /dev/null
+++ b/sim/ucsim/example/banking_conf.cmd
@@ -0,0 +1,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