trunk/src/mame/drivers/r2dx_v33.c
| r32201 | r32202 | |
| 55 | 55 | DECLARE_WRITE16_MEMBER(mcu_yval_w); |
| 56 | 56 | DECLARE_WRITE16_MEMBER(mcu_table_w); |
| 57 | 57 | DECLARE_WRITE16_MEMBER(mcu_table2_w); |
| 58 | | DECLARE_READ16_MEMBER(nzerotea_sound_comms_r); |
| 59 | | DECLARE_WRITE16_MEMBER(nzerotea_sound_comms_w); |
| 60 | 58 | DECLARE_WRITE16_MEMBER(mcu_prog_w); |
| 61 | 59 | DECLARE_WRITE16_MEMBER(mcu_prog_w2); |
| 62 | 60 | DECLARE_WRITE16_MEMBER(mcu_prog_offs_w); |
| r32201 | r32202 | |
| 345 | 343 | AM_RANGE(0x40000, 0xfffff) AM_ROM AM_ROMBANK("bank3") AM_WRITENOP |
| 346 | 344 | ADDRESS_MAP_END |
| 347 | 345 | |
| 348 | | READ16_MEMBER(r2dx_v33_state::nzerotea_sound_comms_r) |
| 349 | | { |
| 350 | | switch(offset+0x780) |
| 351 | | { |
| 352 | | case (0x788/2): return m_seibu_sound->main_word_r(space,2,0xffff); |
| 353 | | case (0x78c/2): return m_seibu_sound->main_word_r(space,3,0xffff); |
| 354 | | case (0x794/2): return m_seibu_sound->main_word_r(space,5,0xffff); |
| 355 | | } |
| 356 | 346 | |
| 357 | | return 0xffff; |
| 358 | | } |
| 359 | | |
| 360 | | |
| 361 | | WRITE16_MEMBER(r2dx_v33_state::nzerotea_sound_comms_w) |
| 362 | | { |
| 363 | | switch(offset+0x780) |
| 364 | | { |
| 365 | | case (0x780/2): { m_seibu_sound->main_word_w(space,0,data,0x00ff); break; } |
| 366 | | case (0x784/2): { m_seibu_sound->main_word_w(space,1,data,0x00ff); break; } |
| 367 | | //case (0x790/2): { m_seibu_sound->main_word_w(space,4,data,0x00ff); break; } |
| 368 | | case (0x794/2): { m_seibu_sound->main_word_w(space,4,data,0x00ff); break; } |
| 369 | | case (0x798/2): { m_seibu_sound->main_word_w(space,6,data,0x00ff); break; } |
| 370 | | } |
| 371 | | } |
| 372 | | |
| 373 | 347 | static ADDRESS_MAP_START( nzeroteam_base_map, AS_PROGRAM, 16, r2dx_v33_state ) |
| 374 | 348 | AM_RANGE(0x00000, 0x003ff) AM_RAM //stack area |
| 375 | 349 | |
| r32201 | r32202 | |
| 405 | 379 | |
| 406 | 380 | // AM_RANGE(0x00762, 0x00763) AM_READ(nzerotea_unknown_r) |
| 407 | 381 | |
| 408 | | AM_RANGE(0x00780, 0x0079f) AM_READWRITE(nzerotea_sound_comms_r,nzerotea_sound_comms_w) |
| 382 | AM_RANGE(0x00780, 0x0079f) AM_READWRITE(raiden2_sound_comms_r,raiden2_sound_comms_w) |
| 409 | 383 | |
| 410 | 384 | AM_RANGE(0x00800, 0x00fff) AM_RAM |
| 411 | 385 | AM_RANGE(0x01000, 0x0bfff) AM_RAM |