Previous 199869 Revisions Next

r17751 Sunday 9th September, 2012 at 12:17:19 UTC by hap
d7756c placeholder, upd7759.c doesn't support upd7756 yet
[src/mame/drivers]homerun.c
[src/mame/includes]homerun.h

trunk/src/mame/includes/homerun.h
r17750r17751
2525   int m_scrollx;
2626   int m_scrolly;
2727
28   DECLARE_WRITE8_MEMBER(homerun_d7756c_control_w);
2829   DECLARE_WRITE8_MEMBER(homerun_videoram_w);
2930   DECLARE_WRITE8_MEMBER(homerun_color_w);
3031   DECLARE_WRITE8_MEMBER(homerun_scrollhi_w);
trunk/src/mame/drivers/homerun.c
r17750r17751
4848#include "cpu/z80/z80.h"
4949#include "machine/i8255.h"
5050#include "sound/2203intf.h"
51#include "sound/upd7759.h"
5152#include "includes/homerun.h"
5253
5354
r17750r17751
5758
5859***************************************************************************/
5960
61WRITE8_MEMBER(homerun_state::homerun_d7756c_control_w)
62{
63   device_t *device = machine().device("d7756c");
64   upd7759_reset_w(device, ~data & 0x20);
65   upd7759_start_w(device, ~data & 0x10);
66}
67
6068static ADDRESS_MAP_START( homerun_memmap, AS_PROGRAM, 8, homerun_state )
6169   AM_RANGE(0x0000, 0x3fff) AM_ROM
6270   AM_RANGE(0x4000, 0x7fff) AM_ROMBANK("bank1")
r17750r17751
6876
6977static ADDRESS_MAP_START( homerun_iomap, AS_IO, 8, homerun_state )
7078   ADDRESS_MAP_GLOBAL_MASK(0xff)
71   AM_RANGE(0x10, 0x10) AM_WRITENOP // D7756C sample number
72   AM_RANGE(0x20, 0x20) AM_WRITENOP // D7756C control
79   AM_RANGE(0x10, 0x10) AM_DEVWRITE_LEGACY("d7756c", upd7759_port_w)
80   AM_RANGE(0x20, 0x20) AM_WRITE(homerun_d7756c_control_w)
7381   AM_RANGE(0x30, 0x33) AM_DEVREADWRITE("ppi8255", i8255_device, read, write)
7482   AM_RANGE(0x40, 0x40) AM_READ_PORT("IN0")
7583   AM_RANGE(0x50, 0x50) AM_READ_PORT("IN2")
r17750r17751
238246   GFXDECODE_ENTRY( "gfx2", 0, spritelayout,   0, 16 )
239247GFXDECODE_END
240248
249/**************************************************************************/
241250
242251static I8255A_INTERFACE( ppi8255_intf )
243252{
r17750r17751
263272   DEVCB_NULL
264273};
265274
275/**************************************************************************/
266276
267277static MACHINE_START( homerun )
268278{
r17750r17751
290300   state->m_scrollx = 0;
291301}
292302
303/**************************************************************************/
304
293305static MACHINE_CONFIG_START( homerun, homerun_state )
294306
295307   /* basic machine hardware */
r17750r17751
322334   MCFG_SOUND_ADD("ymsnd", YM2203, XTAL_20MHz/8)
323335   MCFG_SOUND_CONFIG(ym2203_config)
324336   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
337
338   MCFG_SOUND_ADD("d7756c", UPD7759, UPD7759_STANDARD_CLOCK)
339   MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
325340MACHINE_CONFIG_END
326341
327342static MACHINE_CONFIG_DERIVED( ganjaja, homerun )
r17750r17751
332347MACHINE_CONFIG_END
333348
334349
350
351/**************************************************************************/
352
335353ROM_START( homerun )
336354   ROM_REGION( 0x30000, "maincpu", 0 )
337355   ROM_LOAD( "homerun.ic43",   0x00000, 0x04000, CRC(e759e476) SHA1(ad4f356ff26209033320a3e6353e4d4d9beb59c1) )
r17750r17751
343361   ROM_REGION( 0x20000, "gfx2", 0 )
344362   ROM_LOAD( "homerun.ic120",  0x00000, 0x20000, CRC(52f0709b) SHA1(19e675bcccadb774f60ec5929fc1fb5cf0d3f617) )
345363
346   ROM_REGION( 0x08000, "d7756c", 0 )
347   ROM_LOAD( "upd7756c.ic98",  0x00000, 0x08000, NO_DUMP ) /* D7756C built-in rom */
364   ROM_REGION( 0x08000, "d7756c", ROMREGION_ERASE00 )
365   ROM_LOAD( "d7756c.ic98",    0x00000, 0x08000, NO_DUMP ) /* D7756C built-in rom */
348366ROM_END
349367
350368
r17750r17751
359377   ROM_REGION( 0x20000, "gfx2", 0 )
360378   ROM_LOAD( "2.ic120",        0x00000, 0x20000, CRC(bedf7b98) SHA1(cb6c5fcaf8df5f5c7636c3c8f79b9dda78e30c2e) )
361379
362   ROM_REGION( 0x08000, "d7756c", 0 )
363   ROM_LOAD( "upd7756c.ic98",  0x00000, 0x08000, NO_DUMP ) /* D7756C built-in rom */
380   ROM_REGION( 0x08000, "d7756c", ROMREGION_ERASE00 )
381   ROM_LOAD( "d7756c.ic98",    0x00000, 0x08000, NO_DUMP ) /* D7756C built-in rom */
364382ROM_END
365383
366384
r17750r17751
376394   ROM_LOAD( "2.ic120",        0x00000, 0x20000, CRC(e65d4d57) SHA1(2ec9e5bdaa94b808573313b6eca657d798004b53) )
377395
378396   ROM_REGION( 0x08000, "d7756c", 0 )
379   ROM_LOAD( "upd77p56c.ic98", 0x00000, 0x08000, NO_DUMP ) /* D77P56C OTP rom (One-Time Programmable, note the extra P) */
397   ROM_LOAD( "d77p56cr.ic98", 0x00000, 0x08000, CRC(06a234ac) SHA1(b4ceff3f9f78551cf4a085642e162e33b266f067) ) /* D77P56CR OTP rom (One-Time Programmable, note the extra P) */
380398ROM_END
381399
382400

Previous 199869 Revisions Next


© 1997-2024 The MAME Team