summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--src/mame/drivers/vtech2.cpp7
-rw-r--r--src/mame/includes/vtech2.h3
-rw-r--r--src/mame/machine/vtech2.cpp5
3 files changed, 10 insertions, 5 deletions
diff --git a/src/mame/drivers/vtech2.cpp b/src/mame/drivers/vtech2.cpp
index 375064f8e0e..c0f44c4cb24 100644
--- a/src/mame/drivers/vtech2.cpp
+++ b/src/mame/drivers/vtech2.cpp
@@ -61,7 +61,6 @@
TODO:
- Ram pak
- undumped DOS ROM
- - joystick
- need software
Cartslot works, even though it seems there were no game carts made
@@ -75,14 +74,12 @@
#include "emu.h"
#include "includes/vtech2.h"
-
#include "cpu/z80/z80.h"
#include "sound/wave.h"
-
+#include "formats/vt_cas.h"
#include "screen.h"
#include "speaker.h"
-#include "formats/vt_cas.h"
void vtech2_state::mem_map(address_map &map)
@@ -525,6 +522,8 @@ MACHINE_CONFIG_START(vtech2_state::laser350)
MCFG_CASSETTE_FORMATS(vtech2_cassette_formats)
MCFG_CASSETTE_DEFAULT_STATE(CASSETTE_PLAY)
+ MCFG_IOEXP_SLOT_ADD("io")
+
/* cartridge */
MCFG_GENERIC_CARTSLOT_ADD("cartslot", generic_plain_slot, "vtech_cart")
MCFG_GENERIC_EXTENSIONS("rom,bin")
diff --git a/src/mame/includes/vtech2.h b/src/mame/includes/vtech2.h
index 69e336dd789..4e6582adc9c 100644
--- a/src/mame/includes/vtech2.h
+++ b/src/mame/includes/vtech2.h
@@ -12,6 +12,7 @@
#include "machine/bankdev.h"
#include "bus/generic/carts.h"
#include "bus/generic/slot.h"
+#include "bus/vtech/ioexp/ioexp.h"
#include "imagedev/cassette.h"
#include "imagedev/flopdrv.h"
#include "sound/spkrdev.h"
@@ -37,6 +38,7 @@ public:
, m_bankb(*this, "bankb")
, m_bankc(*this, "bankc")
, m_bankd(*this, "bankd")
+ , m_ioexp(*this, "io")
{ }
void laser350(machine_config &config);
@@ -84,6 +86,7 @@ private:
required_device<address_map_bank_device> m_bankb;
required_device<address_map_bank_device> m_bankc;
required_device<address_map_bank_device> m_bankd;
+ required_device<vtech_ioexp_slot_device> m_ioexp;
char m_laser_frame_message[64+1];
int m_laser_frame_time;
diff --git a/src/mame/machine/vtech2.cpp b/src/mame/machine/vtech2.cpp
index af14e304e6f..b5bcf1ff08e 100644
--- a/src/mame/machine/vtech2.cpp
+++ b/src/mame/machine/vtech2.cpp
@@ -8,7 +8,7 @@
Davide Moretti <dave@rimini.com> ROM dump and hardware description
TODO:
- Printer and RS232 support.
+ RS232 support.
Check if the FDC is really the same as in the
Laser 210/310 (aka VZ200/300) series.
@@ -43,6 +43,9 @@ void vtech2_state::init_laser()
// check ROM expansion
std::string region_tag;
m_cart_rom = memregion(region_tag.assign(m_cart->tag()).append(GENERIC_ROM_REGION_TAG).c_str());
+
+ // setup expansion slot
+ m_ioexp->set_io_space(&m_maincpu->space(AS_IO));
}