From 6f2d3f59e0a7702ff5fe73f57d62e4149a775ab2 Mon Sep 17 00:00:00 2001 From: Angelo Salese Date: Mon, 13 Jul 2009 23:29:15 +0000 Subject: [PATCH] New games marked as GAME_NOT_WORKING ------------------------------------ Time Traveller [Angelo Salese] --- .gitattributes | 1 + src/mame/drivers/timetrv.c | 166 +++++++++++++++++++++++++++++++++++++ src/mame/mame.mak | 1 + src/mame/mamedriv.c | 2 +- 4 files changed, 169 insertions(+), 1 deletion(-) create mode 100644 src/mame/drivers/timetrv.c diff --git a/.gitattributes b/.gitattributes index de5605757ab..7eaa2cf6992 100644 --- a/.gitattributes +++ b/.gitattributes @@ -2152,6 +2152,7 @@ src/mame/drivers/tickee.c svneol=native#text/plain src/mame/drivers/tigeroad.c svneol=native#text/plain src/mame/drivers/timelimt.c svneol=native#text/plain src/mame/drivers/timeplt.c svneol=native#text/plain +src/mame/drivers/timetrv.c svneol=native#text/plain src/mame/drivers/tmaster.c svneol=native#text/plain src/mame/drivers/tmmjprd.c svneol=native#text/plain src/mame/drivers/tmnt.c svneol=native#text/plain diff --git a/src/mame/drivers/timetrv.c b/src/mame/drivers/timetrv.c new file mode 100644 index 00000000000..38d7f4f89bd --- /dev/null +++ b/src/mame/drivers/timetrv.c @@ -0,0 +1,166 @@ +/************************************************************************************************* + +(Hologram) Time Traveler (c) 1991 Virtual Image Productions / Sega + +preliminary driver by Angelo Salese + +TODO: +- unemulated Pioneer LDV-4200 and Sony LDP-1450 players, needs a dump of the BIOSes and proper + hook-up; + +================================================================================================== + +Time Traveler ROM image + +warren@dragons-lair-project.com +6/25/01 + + +ROM is a 27C020 (256kbit x 8 = 256 KB) +ROM sticker says 6/18/91 + +CPU is an Intel 80188 + +*************************************************************************************************/ + +#include "driver.h" +#include "cpu/i86/i86.h" + +static UINT8 *led_vram_lo,*led_vram_hi; + +VIDEO_START( timetrv ) +{ + +} + +VIDEO_UPDATE( timetrv ) +{ + popmessage("%s%s",led_vram_lo,led_vram_hi); + return 0; +} + +static READ8_HANDLER( test1_r ) +{ + return input_port_read(space->machine, "IN0");//mame_rand(space->machine); +} + +static READ8_HANDLER( test2_r ) +{ + /*bit 7,eeprom read bit*/ + return (input_port_read(space->machine, "IN1") & 0x7f);//mame_rand(space->machine); +} + + +static READ8_HANDLER( in_r ) +{ + return 0xff; +} + +static READ8_HANDLER( ld_r ) +{ + return mame_rand(space->machine); +} + +static ADDRESS_MAP_START( timetrv_map, ADDRESS_SPACE_PROGRAM, 8 ) + AM_RANGE(0x00000, 0x0ffff) AM_RAM //irq vectors + work ram + AM_RANGE(0x10000, 0x107ff) AM_RAM + AM_RANGE(0xc0000, 0xfffff) AM_ROM +ADDRESS_MAP_END + +static ADDRESS_MAP_START( timetrv_io, ADDRESS_SPACE_IO, 8 ) + AM_RANGE(0x0122, 0x0123) AM_WRITENOP //eeprom write bits + AM_RANGE(0x1000, 0x1000) AM_READ(test1_r) //inputs + AM_RANGE(0x1001, 0x1001) AM_READ(test2_r) //eeprom read bit + inputs + + AM_RANGE(0x1080, 0x1082) AM_READ(in_r) //dsw + AM_RANGE(0x1100, 0x1105) AM_WRITENOP //laserdisc write area + AM_RANGE(0x1100, 0x1105) AM_READ(ld_r) //5 -> laserdisc read status + AM_RANGE(0x1180, 0x1187) AM_RAM AM_BASE(&led_vram_lo)//led string,part 1 + AM_RANGE(0x1200, 0x1207) AM_RAM AM_BASE(&led_vram_hi)//led string,part 2 + AM_RANGE(0xff80, 0xffff) AM_RAM //am80188-em-like cpu internal regs? +ADDRESS_MAP_END + + +static INPUT_PORTS_START( timetrv ) + PORT_START("IN0") + PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) + PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) + PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) + PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) + PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START1 ) + PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_START2 ) + PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_COIN1 ) + PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN2 ) + + PORT_START("IN1") + PORT_DIPNAME( 0x01, 0x01, DEF_STR( Unknown ) ) + PORT_DIPSETTING( 0x01, DEF_STR( Off ) ) + PORT_DIPSETTING( 0x00, DEF_STR( On ) ) + PORT_DIPNAME( 0x02, 0x02, DEF_STR( Unknown ) ) + PORT_DIPSETTING( 0x02, DEF_STR( Off ) ) + PORT_DIPSETTING( 0x00, DEF_STR( On ) ) + PORT_DIPNAME( 0x04, 0x04, DEF_STR( Unknown ) ) + PORT_DIPSETTING( 0x04, DEF_STR( Off ) ) + PORT_DIPSETTING( 0x00, DEF_STR( On ) ) + PORT_DIPNAME( 0x08, 0x08, DEF_STR( Unknown ) ) + PORT_DIPSETTING( 0x08, DEF_STR( Off ) ) + PORT_DIPSETTING( 0x00, DEF_STR( On ) ) + PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) + PORT_DIPNAME( 0x20, 0x20, DEF_STR( Unknown ) ) + PORT_DIPSETTING( 0x20, DEF_STR( Off ) ) + PORT_DIPSETTING( 0x00, DEF_STR( On ) ) + PORT_DIPNAME( 0x40, 0x40, DEF_STR( Service_Mode ) ) + PORT_DIPSETTING( 0x40, DEF_STR( Off ) ) + PORT_DIPSETTING( 0x00, DEF_STR( On ) ) + // 0x80 eeprom read bit +INPUT_PORTS_END + +static INTERRUPT_GEN( vblank_irq ) +{ + cpu_set_input_line_and_vector(device,0,HOLD_LINE,0x20/4); //vblank bit flag clear +} + +static INTERRUPT_GEN( ld_irq ) +{ + cpu_set_input_line_and_vector(device,0,HOLD_LINE,0x48/4); //ld irq +} + +static MACHINE_DRIVER_START( timetrv ) + + /* basic machine hardware */ + MDRV_CPU_ADD("maincpu",I80188,20000000) //??? + MDRV_CPU_PROGRAM_MAP(timetrv_map) + MDRV_CPU_IO_MAP(timetrv_io) + MDRV_CPU_VBLANK_INT("screen",vblank_irq) + MDRV_CPU_PERIODIC_INT(ld_irq,60) //remove from here + + /* video hardware */ + MDRV_SCREEN_ADD("screen", RASTER) + MDRV_SCREEN_REFRESH_RATE(60) + MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0)) + MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16) + MDRV_SCREEN_SIZE(512, 512) + MDRV_SCREEN_VISIBLE_AREA(0*8, 512-1, 0*8, 512-1) + MDRV_PALETTE_LENGTH(512) + + MDRV_VIDEO_START(timetrv) + MDRV_VIDEO_UPDATE(timetrv) + + /* sound hardware */ +MACHINE_DRIVER_END + +/*************************************************************************** + + Game driver(s) + +***************************************************************************/ + +ROM_START( timetrv ) + ROM_REGION( 0x100000, "maincpu", 0 ) + ROM_LOAD( "tt061891.bin", 0xc0000, 0x40000, CRC(a3d44219) SHA1(7c5003b6d3df1e472db45abd725e7d3d43f0dfb4) ) + + DISK_REGION( "laserdisc" ) + DISK_IMAGE_READONLY( "timetrv", 0, NO_DUMP ) +ROM_END + +GAME( 1991, timetrv, 0, timetrv, timetrv, 0, ROT0, "Virtual Image Productions (Sega license)", "Time Traveller", GAME_NO_SOUND | GAME_NOT_WORKING ) diff --git a/src/mame/mame.mak b/src/mame/mame.mak index 5492720e24d..d65f4c024e2 100644 --- a/src/mame/mame.mak +++ b/src/mame/mame.mak @@ -1140,6 +1140,7 @@ $(MAMEOBJ)/sega.a: \ $(DRIVERS)/suprloco.o $(VIDEO)/suprloco.o \ $(DRIVERS)/system1.o $(VIDEO)/system1.o \ $(DRIVERS)/system16.o $(MACHINE)/system16.o $(VIDEO)/system16.o $(VIDEO)/sys16spr.o \ + $(DRIVERS)/timetrv.o \ $(DRIVERS)/topshoot.o \ $(DRIVERS)/turbo.o $(AUDIO)/turbo.o $(VIDEO)/turbo.o \ $(DRIVERS)/vicdual.o $(AUDIO)/vicdual.o $(VIDEO)/vicdual.o \ diff --git a/src/mame/mamedriv.c b/src/mame/mamedriv.c index bdf78887330..1921d52b03e 100644 --- a/src/mame/mamedriv.c +++ b/src/mame/mamedriv.c @@ -3516,6 +3516,7 @@ V-V TP-027 DRIVER( sblazerp ) /* (c) 1983 */ DRIVER( cobraseg ) /* (c) ???? */ DRIVER( gpworld ) /* (c) 1984 */ + DRIVER( timetrv ) /* (c) 1991.10 Virtual Image Productions */ /* Sega SG1000 based games */ DRIVER( chboxing ) /* (c) 1984 */ @@ -3920,7 +3921,6 @@ DokiDoki Penguin Land *not confirmed DRIVER( spidman ) /* 1991.?? Spiderman (World) */ DRIVER( spidmanu ) /* 1991.09 Spiderman (US) */ /* 1991.09 Spiderman (Japan) */ - /* 1991.10 Hologram Time Traveler (Japan) */ DRIVER( f1en ) /* 1991.?? F-1 Exhaust Note (World) */ /* 1992.01 F-1 Exhaust Note (US) */ /* 1991.11 F-1 Exhaust Note (Japan) */