summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/eolith16.c
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2013-07-27 03:28:25 +0000
committer Aaron Giles <aaron@aarongiles.com>2013-07-27 03:28:25 +0000
commitb963a48cdf1e6f37a6bb64a07dde9428e827e0b5 (patch)
tree9b6f8b635f9ee9c4faa6603bcac75a4211edbdff /src/mame/drivers/eolith16.c
parent3f994bce85df3e31e127ed434e8bf3836ae5e3c7 (diff)
Split eeprom.c into a base class base_eeprom_device and a serial-specific
subclass serial_eeprom_device. Moved the latter into its own file eepromser.c and significantly cleaned up/simplified the code. The new code should be functionally the same as the previous code, but expect that to change soon. As a side-effect, the size and bus width of the EEPROM is now specified in the ADD macro rather than in the interface structure.
Diffstat (limited to 'src/mame/drivers/eolith16.c')
-rw-r--r--src/mame/drivers/eolith16.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mame/drivers/eolith16.c b/src/mame/drivers/eolith16.c
index 2226aa2b2e2..e402910de3d 100644
--- a/src/mame/drivers/eolith16.c
+++ b/src/mame/drivers/eolith16.c
@@ -11,7 +11,7 @@
#include "emu.h"
#include "cpu/e132xs/e132xs.h"
-#include "machine/eeprom.h"
+#include "machine/eepromser.h"
#include "sound/okim6295.h"
#include "includes/eolith.h"
@@ -41,8 +41,6 @@ public:
// It's configured for 512 bytes
static const serial_eeprom_interface eeprom_interface_93C66 =
{
- 9, // address bits 9
- 8, // data bits 8
"*110", // read 110 aaaaaaaaa
"*101", // write 101 aaaaaaaaa dddddddd
"*111", // erase 111 aaaaaaaaa
@@ -181,7 +179,7 @@ static MACHINE_CONFIG_START( eolith16, eolith16_state )
MCFG_CPU_PROGRAM_MAP(eolith16_map)
MCFG_TIMER_DRIVER_ADD_SCANLINE("scantimer", eolith16_state, eolith_speedup, "screen", 0, 1)
- MCFG_SERIAL_EEPROM_ADD("eeprom", eeprom_interface_93C66)
+ MCFG_SERIAL_EEPROM_ADD("eeprom", 512, 8, eeprom_interface_93C66)
/* video hardware */
MCFG_SCREEN_ADD("screen", RASTER)