Revision: 18877
http://vice-emu.svn.sourceforge.net/vice-emu/?rev=18877&view=rev
Author: blackystardust
Date: 2008-06-20 19:25:26 -0700 (Fri, 20 Jun 2008)
Log Message:
-----------
Fixed plus4 rom store.
Modified Paths:
--------------
branches/marco/ports/vice/src/plus4/plus4mem.c
Modified: branches/marco/ports/vice/src/plus4/plus4mem.c
===================================================================
--- branches/marco/ports/vice/src/plus4/plus4mem.c 2008-06-20 02:29:47 UTC (rev 18876)
+++ branches/marco/ports/vice/src/plus4/plus4mem.c 2008-06-21 02:25:26 UTC (rev 18877)
@@ -571,6 +571,24 @@
}
}
+static void REGPARM2 h256k_rom_ffxx_store(WORD addr, BYTE value)
+{
+ if (addr < 0xff20 || addr == 0xff3e || addr == 0xff3f) {
+ ted_store(addr, value);
+ } else {
+ h256k_store(addr, value);
+ }
+}
+
+static void REGPARM2 cs256k_rom_ffxx_store(WORD addr, BYTE value)
+{
+ if (addr < 0xff20 || addr == 0xff3e || addr == 0xff3f) {
+ ted_store(addr, value);
+ } else {
+ cs256k_store(addr, value);
+ }
+}
+
static void REGPARM2 rom_ffxx_store_32k(WORD addr, BYTE value)
{
if (addr < 0xff20 || addr == 0xff3e || addr == 0xff3f) {
@@ -808,14 +826,15 @@
if (h256k_enabled) {
mem_read_tab[i + 0][0xff] = h256k_ram_ffxx_read;
mem_write_tab[i + 0][0xff] = h256k_ram_ffxx_store;
+ mem_write_tab[i + 1][0xff] = h256k_rom_ffxx_store;
}
if (cs256k_enabled) {
mem_read_tab[i + 0][0xff] = cs256k_ram_ffxx_read;
mem_write_tab[i + 0][0xff] = cs256k_ram_ffxx_store;
+ mem_write_tab[i + 1][0xff] = cs256k_rom_ffxx_store;
}
mem_read_base_tab[i + 0][0xff] = NULL;
mem_read_tab[i + 1][0xff] = rom_ffxx_read;
- mem_write_tab[i + 1][0xff] = rom_ffxx_store;
mem_read_base_tab[i + 1][0xff] = NULL;
break;
default:
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|