trunk/src/mame/drivers/kurukuru.cpp
| r253050 | r253051 | |
| 370 | 370 | ADDRESS_MAP_END |
| 371 | 371 | |
| 372 | 372 | static ADDRESS_MAP_START( ppj_io, AS_IO, 8, kurukuru_state ) |
| 373 | ADDRESS_MAP_GLOBAL_MASK(0xff) |
| 373 | 374 | AM_RANGE(0x00, 0x00) AM_MIRROR(0x0f) AM_WRITE(kurukuru_bankswitch_w) |
| 374 | 375 | 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) |
| 375 | 377 | 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) |
| 376 | 379 | AM_RANGE(0x60, 0x60) AM_MIRROR(0x0f) AM_READ_PORT("IN1") |
| 377 | 380 | AM_RANGE(0x70, 0x70) AM_MIRROR(0x0f) AM_READ_PORT("IN0") |
| 378 | 381 | AM_RANGE(0xc0, 0xc0) AM_MIRROR(0x0f) AM_DEVWRITE("ym2149", ay8910_device, address_w) |
| 379 | 382 | AM_RANGE(0xc8, 0xc8) AM_MIRROR(0x0f) AM_DEVREAD("ym2149", ay8910_device, data_r) |
| 380 | 383 | AM_RANGE(0xd0, 0xd0) AM_MIRROR(0x0f) AM_DEVWRITE("ym2149", ay8910_device, data_w) |
| 381 | | ADDRESS_MAP_GLOBAL_MASK(0xff) |
| 382 | 384 | ADDRESS_MAP_END |
| 385 | /* |
| 383 | 386 | |
| 387 | 00h W --> bankswitching reg... |
| 388 | |
| 389 | 10h W --> 00's \ |
| 390 | 11h W --> 02 8f 20 91... > V9938 OK |
| 391 | 13h W --> / |
| 384 | 392 | |
| 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 | |
| 385 | 405 | // Audio CPU |
| 386 | 406 | |
| 387 | 407 | WRITE8_MEMBER(kurukuru_state::kurukuru_adpcm_data_w) |