Previous 199869 Revisions Next

r44539 Wednesday 27th January, 2016 at 23:11:55 UTC by Roberto Fresca
Pyon Pyon Jump: Added sound latch & output port. [Roberto Fresca]
[src/mame/drivers]kurukuru.cpp

trunk/src/mame/drivers/kurukuru.cpp
r253050r253051
370370ADDRESS_MAP_END
371371
372372static ADDRESS_MAP_START( ppj_io, AS_IO, 8, kurukuru_state )
373   ADDRESS_MAP_GLOBAL_MASK(0xff)
373374   AM_RANGE(0x00, 0x00) AM_MIRROR(0x0f) AM_WRITE(kurukuru_bankswitch_w)
374375   AM_RANGE(0x10, 0x13) AM_MIRROR(0x0c) AM_DEVREADWRITE( "v9938", v9938_device, read, write )
376   AM_RANGE(0x30, 0x30) AM_MIRROR(0x0f) AM_WRITE(kurukuru_soundlatch_w)
375377   AM_RANGE(0x40, 0x40) AM_MIRROR(0x0f) AM_READ_PORT("DSW1")
378   AM_RANGE(0x50, 0x50) AM_MIRROR(0x0f) AM_WRITE(kurukuru_out_latch_w)
376379   AM_RANGE(0x60, 0x60) AM_MIRROR(0x0f) AM_READ_PORT("IN1")
377380   AM_RANGE(0x70, 0x70) AM_MIRROR(0x0f) AM_READ_PORT("IN0")
378381   AM_RANGE(0xc0, 0xc0) AM_MIRROR(0x0f) AM_DEVWRITE("ym2149", ay8910_device, address_w)
379382   AM_RANGE(0xc8, 0xc8) AM_MIRROR(0x0f) AM_DEVREAD("ym2149", ay8910_device, data_r)
380383   AM_RANGE(0xd0, 0xd0) AM_MIRROR(0x0f) AM_DEVWRITE("ym2149", ay8910_device, data_w)
381   ADDRESS_MAP_GLOBAL_MASK(0xff)
382384ADDRESS_MAP_END
385/*
383386
387 00h  W --> bankswitching reg...
388 
389 10h  W --> 00's           \
390 11h  W --> 02 8f 20 91...  > V9938 OK
391 13h  W -->                /
384392
393 30h  W --> soundlatch...
394 40h R  --> (very begining) seems DSW1
395 50h  W --> Output port (counters)
396 60h R  --> Input port
397 70h R  --> Input port
398
399 C0h  W --> YM2149 address W
400 C8h R  --> YM2149 data R --> DSW2
401 D0h  W --> YM2149 data W
402
403*/
404
385405// Audio CPU
386406
387407WRITE8_MEMBER(kurukuru_state::kurukuru_adpcm_data_w)


Previous 199869 Revisions Next


© 1997-2024 The MAME Team