summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/europc.cpp
diff options
context:
space:
mode:
author mooglyguy <therealmogminer@gmail.com>2018-08-16 20:25:01 +0200
committer mooglyguy <therealmogminer@gmail.com>2018-08-16 20:25:01 +0200
commit10e33516c853bcc4f72d15a5af36159bb0fc5fe8 (patch)
treee9c9c9970867a73db068dc5b19fda39dec242a10 /src/mame/drivers/europc.cpp
parent519d60acf0fc4325a67fcd8d3a18a49ebab68444 (diff)
-ram_device: MCFG removal, nw
Diffstat (limited to 'src/mame/drivers/europc.cpp')
-rw-r--r--src/mame/drivers/europc.cpp22
1 files changed, 13 insertions, 9 deletions
diff --git a/src/mame/drivers/europc.cpp b/src/mame/drivers/europc.cpp
index e4e5fa9a0ac..000ff099c00 100644
--- a/src/mame/drivers/europc.cpp
+++ b/src/mame/drivers/europc.cpp
@@ -34,6 +34,7 @@
#include "machine/genpc.h"
#include "machine/nvram.h"
#include "machine/pckeybrd.h"
+#include "machine/ram.h"
#include "coreutil.h"
@@ -46,6 +47,7 @@ public:
m_maincpu(*this, "maincpu"),
m_mb(*this, "mb"),
m_keyboard(*this, "pc_keyboard"),
+ m_ram(*this, RAM_TAG),
m_jim_state(0),
m_port61(0)
{ }
@@ -60,6 +62,7 @@ private:
required_device<cpu_device> m_maincpu;
required_device<pc_noppi_mb_device> m_mb;
required_device<pc_keyboard_device> m_keyboard;
+ required_device<ram_device> m_ram;
DECLARE_WRITE8_MEMBER( europc_pio_w );
DECLARE_READ8_MEMBER( europc_pio_r );
@@ -541,26 +544,27 @@ MACHINE_CONFIG_START(europc_pc_state::europc)
MCFG_NVRAM_ADD_0FILL("nvram");
/* internal ram */
- MCFG_RAM_ADD(RAM_TAG)
- MCFG_RAM_DEFAULT_SIZE("512K")
- MCFG_RAM_EXTRA_OPTIONS("256K, 640K") // Machine came with 512K standard, 640K via expansion card, but BIOS offers 256K as well
+ // Machine came with 512K standard, 640K via expansion card, but BIOS offers 256K as well
+ RAM(config, m_ram).set_default_size("512K").set_extra_options("256K, 640K");
/* software lists */
MCFG_SOFTWARE_LIST_ADD("disk_list", "ibm5150")
MACHINE_CONFIG_END
//Euro PC II
-MACHINE_CONFIG_START(europc_pc_state::europc2)
+void europc_pc_state::europc2(machine_config &config)
+{
europc(config);
- MCFG_DEVICE_MODIFY(RAM_TAG)
- MCFG_RAM_DEFAULT_SIZE("768K") // could be configured by the BIOS as 640K, 640K+128K EMS or 512K+256K EMS
-MACHINE_CONFIG_END
+ // could be configured by the BIOS as 640K, 640K+128K EMS or 512K+256K EMS
+ m_ram->set_default_size("768K");
+}
//Euro XT
MACHINE_CONFIG_START(europc_pc_state::euroxt)
europc(config);
- MCFG_DEVICE_MODIFY(RAM_TAG)
- MCFG_RAM_DEFAULT_SIZE("768K")
+
+ m_ram->set_default_size("768K");
+
MCFG_DEVICE_MODIFY("isa2")
MCFG_SLOT_DEFAULT_OPTION(nullptr)
MCFG_DEVICE_ADD("isa5", ISA8_SLOT, 0, "mb:isa", pc_isa8_cards, "xtide", false) // FIXME: determine ISA bus clock