summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2016-11-17 23:36:10 (GMT)
committerH. Peter Anvin <hpa@zytor.com>2016-11-17 23:36:10 (GMT)
commitdf7db8845618d5ad7fc15e2c0b051d1d1bc4b978 (patch)
tree11afa7a314a8ffd65e1c5af84bcd5ac9c97d0972
parent25a68b7503ac63c384b2013ffa926539b9fad285 (diff)
downloadabc80-df7db8845618d5ad7fc15e2c0b051d1d1bc4b978.zip
abc80-df7db8845618d5ad7fc15e2c0b051d1d1bc4b978.tar.gz
abc80-df7db8845618d5ad7fc15e2c0b051d1d1bc4b978.tar.bz2
abc80-df7db8845618d5ad7fc15e2c0b051d1d1bc4b978.tar.xz
Move fgram back to 64K, move RAM BASIC80 to 80K
For backwards compatibility, move the fgram default page back to 64K. Swap it with the BASIC80 RAM region, now at 80K. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r--abc80.v2
-rwxr-xr-xdata/mmuinit.pl2
2 files changed, 2 insertions, 2 deletions
diff --git a/abc80.v b/abc80.v
index dfbb257..aa8d931 100644
--- a/abc80.v
+++ b/abc80.v
@@ -1321,7 +1321,7 @@ module abc80 (
np_adv_addr <= 1'b0;
fgctl <= 8'h00;
- fgpage <= 5'h05; // After BASIC80 in RAM
+ fgpage <= 5'h04; // Before BASIC80 in RAM
gpio_dat <= 36'b0;
gpio_ctl <= 36'b0;
diff --git a/data/mmuinit.pl b/data/mmuinit.pl
index 75be757..f0a0a0a 100755
--- a/data/mmuinit.pl
+++ b/data/mmuinit.pl
@@ -49,7 +49,7 @@ sub do_maps($$)
my $i;
my $lorom = $is80 ? 0x9080 : 0x9000;
my $hirom = 0x9000; # Do not switch on screen size change
- my $loram = $is80 ? 0x0100 : 0x0000;
+ my $loram = $is80 ? 0x0140 : 0x0000;
my $hiram = 0x0000; # Do not switch on screen size change
my $bgram = 0x4000;
my $vram = 0x2000;