summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/welltris.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/welltris.cpp')
-rw-r--r--src/mame/drivers/welltris.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mame/drivers/welltris.cpp b/src/mame/drivers/welltris.cpp
index 30a1fcdc197..558edf1dd87 100644
--- a/src/mame/drivers/welltris.cpp
+++ b/src/mame/drivers/welltris.cpp
@@ -318,6 +318,7 @@ TODO:
#include "cpu/m68000/m68000.h"
#include "cpu/z80/z80.h"
#include "sound/2610intf.h"
+#include "video/vsystem_gga.h"
#include "screen.h"
#include "speaker.h"
@@ -371,9 +372,8 @@ static ADDRESS_MAP_START( main_map, AS_PROGRAM, 16, welltris_state )
AM_RANGE(0xfff008, 0xfff009) AM_WRITE(sound_command_w)
AM_RANGE(0xfff00a, 0xfff00b) AM_READ_PORT("EXTRA") /* P3+P4 Coin + Start Buttons */
AM_RANGE(0xfff00c, 0xfff00d) AM_READ_PORT("DSW1")
- AM_RANGE(0xfff00c, 0xfff00d) AM_WRITENOP /* ?? */
AM_RANGE(0xfff00e, 0xfff00f) AM_READ_PORT("DSW2")
- AM_RANGE(0xfff00e, 0xfff00f) AM_WRITENOP /* ?? */
+ AM_RANGE(0xfff00c, 0xfff00f) AM_DEVWRITE8("gga", vsystem_gga_device, write, 0x00ff)
ADDRESS_MAP_END
static ADDRESS_MAP_START( sound_map, AS_PROGRAM, 8, welltris_state )
@@ -714,6 +714,8 @@ static MACHINE_CONFIG_START( welltris, welltris_state )
MCFG_PALETTE_ADD("palette", 2048)
MCFG_PALETTE_FORMAT(xRRRRRGGGGGBBBBB)
+ MCFG_DEVICE_ADD("gga", VSYSTEM_GGA, 0)
+
MCFG_DEVICE_ADD("vsystem_spr_old", VSYSTEM_SPR2, 0)
MCFG_VSYSTEM_SPR2_SET_GFXREGION(1)
MCFG_VSYSTEM_SPR2_SET_PRITYPE(-1)