Previous 199869 Revisions Next

r36593 Tuesday 24th March, 2015 at 01:01:24 UTC by David Haywood
ttchamp PIC doesn't seem to be for sound either? (nw)
[src/mame/drivers]ttchamp.c

trunk/src/mame/drivers/ttchamp.c
r245104r245105
6262
6363#include "emu.h"
6464#include "cpu/nec/nec.h"
65#include "sound/okim6295.h"
6566
66
6767class ttchamp_state : public driver_device
6868{
6969public:
r245104r245105
9595
9696
9797
98
9899   UINT16 m_mainram[0x10000 / 2];
99100
100101   int m_spritesinit;
r245104r245105
193194}
194195
195196
196
197197READ16_MEMBER(ttchamp_state::ttchamp_mem_r)
198198{
199199   // bits 0xf0 are used too, so this is likely wrong.
r245104r245105
338338   AM_RANGE(0x0002, 0x0003) AM_READ_PORT("SYSTEM")
339339   AM_RANGE(0x0004, 0x0005) AM_READ_PORT("P1_P2")
340340
341   AM_RANGE(0x0006, 0x0007) AM_DEVREADWRITE8("oki", okim6295_device, read, write, 0x00ff)
341342
342343   AM_RANGE(0x0018, 0x0019) AM_READ(ttchamp_blit_start_r)
343344   AM_RANGE(0x001e, 0x001f) AM_READNOP // read before each line is blit
r245104r245105
442443
443444   MCFG_PALETTE_ADD("palette", 0x8000)
444445
446   MCFG_SPEAKER_STANDARD_MONO("mono")
447
448   MCFG_OKIM6295_ADD("oki", 8000000/8, OKIM6295_PIN7_HIGH)
449   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
450
445451MACHINE_CONFIG_END
446452
447453ROM_START( ttchamp )
r245104r245105
451457   ROM_LOAD16_BYTE( "4.bin", 0x100000, 0x080000,  CRC(4388dead) SHA1(1965e4b84452b244e32c8d218aace8d287c67ec2) )
452458   ROM_LOAD16_BYTE( "5.bin", 0x100001, 0x080000,  CRC(fdbf9b28) SHA1(2d260555586097c8a396f65111f55ace801c7a5d) )
453459
454   ROM_REGION( 0x10000, "cpu1", 0 ) /* not verified if this is correct yet, seems very empty, maybe protected */
455   ROM_LOAD( "pic16c84.rom", 0x000000, 0x4280,  CRC(900f2ef8) SHA1(08f206fe52f413437436e4b0d2b4ec310767446c) )
460   ROM_REGION( 0x10000, "cpu1", 0 ) // read protected, only half the data is valid
461   ROM_LOAD( "pic16c84.rom", 0x000000, 0x4280,  BAD_DUMP CRC(900f2ef8) SHA1(08f206fe52f413437436e4b0d2b4ec310767446c) )
456462
457   ROM_REGION( 0x40000, "samples", 0 )
463   ROM_REGION( 0x40000, "oki", 0 )
458464   ROM_LOAD( "27c020.1", 0x000000, 0x040000,  CRC(e2c4fe95) SHA1(da349035cc348db220a1e12b4c2a6021e2168425) )
459465ROM_END
460466
r245104r245105
465471   ROM_LOAD16_BYTE( "4.bin", 0x100000, 0x080000,  CRC(4388dead) SHA1(1965e4b84452b244e32c8d218aace8d287c67ec2) )
466472   ROM_LOAD16_BYTE( "5.bin", 0x100001, 0x080000,  CRC(fdbf9b28) SHA1(2d260555586097c8a396f65111f55ace801c7a5d) )
467473
468   ROM_REGION( 0x10000, "cpu1", 0 ) /* not verified if this is correct yet, seems very empty, maybe protected */
469   ROM_LOAD( "pic16c84.rom", 0x000000, 0x4280,  CRC(900f2ef8) SHA1(08f206fe52f413437436e4b0d2b4ec310767446c) )
474   ROM_REGION( 0x10000, "cpu1", 0 ) // read protected, only half the data is valid
475   ROM_LOAD( "pic16c84.rom", 0x000000, 0x4280, BAD_DUMP CRC(900f2ef8) SHA1(08f206fe52f413437436e4b0d2b4ec310767446c) )
470476
471   ROM_REGION( 0x40000, "samples", 0 )
477   ROM_REGION( 0x40000, "oki", 0 )
472478   ROM_LOAD( "27c020.1", 0x000000, 0x040000,  CRC(e2c4fe95) SHA1(da349035cc348db220a1e12b4c2a6021e2168425) )
473479ROM_END
474480
r245104r245105
479485//   membank("bank2")->set_base(&ROM1[0x180000]);
480486}
481487
482GAME( 1995, ttchamp, 0,        ttchamp, ttchamp, ttchamp_state, ttchamp, ROT0,  "Gamart",                               "Table Tennis Champions", GAME_NOT_WORKING|GAME_NO_SOUND ) // this has various advertising boards, including 'Electronic Devices' and 'Deniam'
483GAME( 1995, ttchampa,ttchamp,  ttchamp, ttchamp, ttchamp_state, ttchamp, ROT0,  "Gamart (Palencia Elektronik license)", "Table Tennis Champions (Palencia Elektronik license)", GAME_NOT_WORKING|GAME_NO_SOUND ) // this only has Palencia Elektronik advertising boards
488GAME( 1995, ttchamp, 0,        ttchamp, ttchamp, ttchamp_state, ttchamp, ROT0,  "Gamart",                               "Table Tennis Champions", GAME_NOT_WORKING ) // this has various advertising boards, including 'Electronic Devices' and 'Deniam'
489GAME( 1995, ttchampa,ttchamp,  ttchamp, ttchamp, ttchamp_state, ttchamp, ROT0,  "Gamart (Palencia Elektronik license)", "Table Tennis Champions (Palencia Elektronik license)", GAME_NOT_WORKING ) // this only has Palencia Elektronik advertising boards


Previous 199869 Revisions Next


© 1997-2024 The MAME Team