diff --git a/.gitattributes b/.gitattributes index 0cb12395c4c..b3aa6150e12 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1599,6 +1599,7 @@ src/mame/drivers/highvdeo.c svneol=native#text/plain src/mame/drivers/hikaru.c svneol=native#text/plain src/mame/drivers/himesiki.c svneol=native#text/plain src/mame/drivers/hitme.c svneol=native#text/plain +src/mame/drivers/hitpoker.c svneol=native#text/plain src/mame/drivers/hnayayoi.c svneol=native#text/plain src/mame/drivers/hng64.c svneol=native#text/plain src/mame/drivers/holeland.c svneol=native#text/plain diff --git a/src/mame/drivers/hitpoker.c b/src/mame/drivers/hitpoker.c new file mode 100644 index 00000000000..96de8b65a23 --- /dev/null +++ b/src/mame/drivers/hitpoker.c @@ -0,0 +1,103 @@ +/*************************************************************************** + +'Hit Poker'? + +cpu hd46505SP (HD6845SP) <- ha, ha, ha... --" + +other : ZC407615CFN (infralink) + +chrystal : no idea + +ram km6264BL X3 +TMM 2018 X2 +DALLAS REAL TIME CLK DS17487-5 +SOUND YM2149F +DIP 1X4 + +============================================================================ + +Skeleton driver, the main issue is to decrypt/identify the main CPU +(something with 0x10-0x40 irq table vectors at the end?). + +***************************************************************************/ + + +#include "driver.h" +#include "cpu/m6502/m6502.h" + + +VIDEO_START(hitpoker) +{ + +} + +VIDEO_UPDATE(hitpoker) +{ + return 0; +} + + +static ADDRESS_MAP_START( main_map, ADDRESS_SPACE_PROGRAM, 8 ) + AM_RANGE(0x0000, 0xffff) AM_ROM +ADDRESS_MAP_END + +static INPUT_PORTS_START( hitpoker ) +INPUT_PORTS_END + + + +static const gfx_layout hitpoker_layout = +{ + 16,8, + RGN_FRAC(1,2), + 8, + { RGN_FRAC(1,2)+0,RGN_FRAC(1,2)+4,RGN_FRAC(1,2)+8,RGN_FRAC(1,2)+12,0,4,8,12 }, + { 0,1,2,3, + 16,17,18,19, + 8*32+0,8*32+1,8*32+2,8*32+3, + 8*32+16,8*32+17,8*32+18,8*32+19 }, + { 0*32, 1*32, 2*32, 3*32,4*32,5*32,6*32,7*32 }, + + 8*64 +}; + + + +static GFXDECODE_START( hitpoker ) + GFXDECODE_ENTRY( "gfx1", 0, hitpoker_layout, 0x0, 2 ) +GFXDECODE_END + +static MACHINE_DRIVER_START( hitpoker ) + MDRV_CPU_ADD("maincpu", M65C02,2000000) /* Wrong, NOT z80 */ + MDRV_CPU_PROGRAM_MAP(main_map) +// MDRV_CPU_VBLANK_INT("main", irq0_line_hold) + + /* 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, 256) + MDRV_SCREEN_VISIBLE_AREA(0, 512-1, 0, 256-1) + + MDRV_GFXDECODE(hitpoker) + MDRV_PALETTE_LENGTH(0x100) + + MDRV_VIDEO_START(hitpoker) + MDRV_VIDEO_UPDATE(hitpoker) +MACHINE_DRIVER_END + + +ROM_START( hitpoker ) + ROM_REGION( 0x10000, "maincpu", 0 ) + ROM_LOAD( "u4.bin", 0x0000, 0x10000, CRC(0016497a) SHA1(017320bfe05fea8a48e26a66c0412415846cee7c) ) + + ROM_REGION( 0x100000, "gfx1", 0 ) // tile 0x4c8 seems to contain something non-gfx related, could be tilemap / colour data, check! + ROM_LOAD16_BYTE( "u42.bin", 0x00001, 0x40000, CRC(cbe56fec) SHA1(129bfd10243eaa7fb6a087f96de90228e6030353) ) + ROM_LOAD16_BYTE( "u43.bin", 0x00000, 0x40000, CRC(6c0d4283) SHA1(04a4fd82f5cc0ed9f548e490ac67d287227073c3) ) + ROM_LOAD16_BYTE( "u44.bin", 0x80001, 0x40000, CRC(e23d5f30) SHA1(ca8855301528aa4eeff40cb820943b4268f8596e) ) // the 'adult images' are 8bpp + ROM_LOAD16_BYTE( "u45.bin", 0x80000, 0x40000, CRC(e65b3e52) SHA1(c0c1a360a4a1823bf71c0a4105ff41f4102862e8) ) // the first part of these 2 is almost empty as the standard gfx are 4bpp +ROM_END + +GAME( 1997, hitpoker, 0, hitpoker, hitpoker, 0, ROT0, "Accept Ltd.", "Hit Poker? (Bulgaria)", GAME_NOT_WORKING|GAME_NO_SOUND ) + diff --git a/src/mame/mame.mak b/src/mame/mame.mak index d539550abf5..87d844bd0f5 100644 --- a/src/mame/mame.mak +++ b/src/mame/mame.mak @@ -1518,6 +1518,7 @@ $(MAMEOBJ)/misc.a: \ $(DRIVERS)/hexa.o $(VIDEO)/hexa.o \ $(DRIVERS)/highvdeo.o \ $(DRIVERS)/himesiki.o $(VIDEO)/himesiki.o \ + $(DRIVERS)/hitpoker.o \ $(DRIVERS)/homedata.o $(VIDEO)/homedata.o \ $(DRIVERS)/hotblock.o \ $(DRIVERS)/ilpag.o \ diff --git a/src/mame/mamedriv.c b/src/mame/mamedriv.c index c5f3beae8c8..4e17fd1d37d 100644 --- a/src/mame/mamedriv.c +++ b/src/mame/mamedriv.c @@ -9537,4 +9537,7 @@ Other Sun games DRIVER( roul ) + /* Accept LTD. */ + DRIVER( hitpoker ) /* (c) 1997 */ + #endif /* DRIVER_RECURSIVE */