diff options
| author | 2008-01-07 02:53:17 +0000 | |
|---|---|---|
| committer | 2008-01-07 02:53:17 +0000 | |
| commit | 6ff095887fdfd132eb8dd0085542d02a696d6482 (patch) | |
| tree | 58bc6b03aa433913d964c7486647a4d342e06b86 | |
| parent | 852e1704a7b3b08cb5c49c59839da1ae5d0e2e65 (diff) | |
(From Jim Stolis)
peplus driver update:
* Updated memory configuration for Superboard game versions. Fixes CMOS
DATA errors on reload.
| -rw-r--r-- | src/mame/drivers/peplus.c | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/src/mame/drivers/peplus.c b/src/mame/drivers/peplus.c index 98873b19797..9cefe36d831 100644 --- a/src/mame/drivers/peplus.c +++ b/src/mame/drivers/peplus.c @@ -166,7 +166,6 @@ static tilemap *bg_tilemap; /* Pointers to External RAM */ static UINT8 *program_ram; static UINT8 *cmos_ram; -static UINT8 *s1000_ram; static UINT8 *s3000_ram; static UINT8 *s5000_ram; static UINT8 *s7000_ram; @@ -195,7 +194,7 @@ static UINT8 coin_out_state = 0; static int sda_dir = 0; /* Static Variables */ -#define CMOS_NVRAM_SIZE 0x1000 +#define CMOS_NVRAM_SIZE 0x2000 #define EEPROM_NVRAM_SIZE 0x200 // 4k Bit @@ -316,11 +315,6 @@ static WRITE8_HANDLER( peplus_cmos_w ) cmos_ram[offset] = data; } -static WRITE8_HANDLER( peplus_s1000_w ) -{ - s1000_ram[offset] = data; -} - static WRITE8_HANDLER( peplus_s3000_w ) { s3000_ram[offset] = data; @@ -466,11 +460,6 @@ static READ8_HANDLER( peplus_cmos_r ) return cmos_ram[offset]; } -static READ8_HANDLER( peplus_s1000_r ) -{ - return s1000_ram[offset]; -} - static READ8_HANDLER( peplus_s3000_r ) { return s3000_ram[offset]; @@ -726,11 +715,8 @@ static ADDRESS_MAP_START( peplus_map, ADDRESS_SPACE_PROGRAM, 8 ) ADDRESS_MAP_END static ADDRESS_MAP_START( peplus_datamap, ADDRESS_SPACE_DATA, 8 ) - // Battery-backed RAM - AM_RANGE(0x0000, 0x0fff) AM_RAM AM_READWRITE(peplus_cmos_r, peplus_cmos_w) AM_BASE(&cmos_ram) - - // Superboard Data - AM_RANGE(0x1000, 0x1fff) AM_RAM AM_READWRITE(peplus_s1000_r, peplus_s1000_w) AM_BASE(&s1000_ram) + // Battery-backed RAM (0x1000-0x01fff Extended RAM for Superboards Only) + AM_RANGE(0x0000, 0x1fff) AM_RAM AM_READWRITE(peplus_cmos_r, peplus_cmos_w) AM_BASE(&cmos_ram) // CRT Controller AM_RANGE(0x2008, 0x2008) AM_WRITE(peplus_crtc_mode_w) @@ -1033,7 +1019,6 @@ static void peplussb_init(void) UINT8 *super_data = memory_region(REGION_USER1); /* Distribute Superboard Data */ - memcpy(s1000_ram, &super_data[0], 0x1000); memcpy(s3000_ram, &super_data[0x3000], 0x1000); memcpy(s5000_ram, &super_data[0x5000], 0x1000); memcpy(s7000_ram, &super_data[0x7000], 0x1000); |
