diff options
author | AJR <ajrhacker@users.noreply.github.com> | 2018-06-05 01:48:41 -0400 |
---|---|---|
committer | AJR <ajrhacker@users.noreply.github.com> | 2018-06-05 01:48:45 -0400 |
commit | d5c39d0d841b92e200b30a0f3e2ec2ff9f0e1c81 (patch) | |
tree | 11a607671af379aaff3051a1cba67aee3b3645b2 | |
parent | 2dc2451077b415b7a690db37ddaffa1c6adcc728 (diff) |
mhavoc: Use parallel EEPROM device (nw)
-rw-r--r-- | src/mame/drivers/mhavoc.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mame/drivers/mhavoc.cpp b/src/mame/drivers/mhavoc.cpp index f5811e15d88..363750240fb 100644 --- a/src/mame/drivers/mhavoc.cpp +++ b/src/mame/drivers/mhavoc.cpp @@ -192,7 +192,7 @@ #include "machine/atari_vg.h" #include "video/avgdvg.h" #include "video/vector.h" -#include "machine/nvram.h" +#include "machine/eeprompar.h" #include "machine/watchdog.h" #include "screen.h" #include "speaker.h" @@ -330,7 +330,7 @@ void mhavoc_state::gamma_map(address_map &map) map(0x5000, 0x5000).w(this, FUNC(mhavoc_state::mhavoc_alpha_w)).mirror(0x07ff); /* Alpha Comm. Write Port */ //AM_RANGE(0x5800, 0x5800) AM_WRITE(mhavocrv_speech_data_w) AM_MIRROR(0x06ff) /* TMS5220 data write */ //AM_RANGE(0x5900, 0x5900) AM_WRITE(mhavocrv_speech_strobe_w) AM_MIRROR(0x06ff) /* TMS5220 /WS strobe write */ - map(0x6000, 0x61ff).ram().share("nvram").mirror(0x1e00); /* EEROM */ + map(0x6000, 0x61ff).rw("eeprom", FUNC(eeprom_parallel_28xx_device::read), FUNC(eeprom_parallel_28xx_device::write)).mirror(0x1e00); /* EEROM */ map(0x8000, 0xbfff).rom().mirror(0x4000); /* Program ROM (16K) */ } @@ -360,8 +360,8 @@ void mhavoc_state::alphaone_map(address_map &map) map(0x10b0, 0x10b0).w(this, FUNC(mhavoc_state::mhavoc_alpha_irq_ack_w)); /* IRQ ack */ map(0x10b4, 0x10b4).w(this, FUNC(mhavoc_state::mhavoc_rom_banksel_w)); map(0x10b8, 0x10b8).w(this, FUNC(mhavoc_state::mhavoc_ram_banksel_w)); - map(0x10e0, 0x10ff).writeonly().share("colorram"); /* ColorRAM */ - map(0x1800, 0x18ff).ram().share("nvram"); /* EEROM */ + map(0x10e0, 0x10ff).rnop().writeonly().share("colorram"); /* ColorRAM */ + map(0x1800, 0x18ff).rw("eeprom", FUNC(eeprom_parallel_28xx_device::read), FUNC(eeprom_parallel_28xx_device::write)); /* EEROM */ map(0x2000, 0x3fff).bankr("bank2"); /* Paged Program ROM (32K) */ map(0x4000, 0x4fff).ram().share("vectorram").region("alpha", 0x4000); /* Vector Generator RAM */ map(0x5000, 0x7fff).rom(); /* Vector ROM */ @@ -526,7 +526,7 @@ MACHINE_CONFIG_START(mhavoc_state::mhavoc) MCFG_DEVICE_ADD("gamma", M6502, MHAVOC_CLOCK_1_25M) /* 1.25 MHz */ MCFG_DEVICE_PROGRAM_MAP(gamma_map) - MCFG_NVRAM_ADD_1FILL("nvram") + MCFG_EEPROM_2804_ADD("eeprom") MCFG_TIMER_DRIVER_ADD_PERIODIC("5k_timer", mhavoc_state, mhavoc_cpu_irq_clock, attotime::from_hz(MHAVOC_CLOCK_5K)) |