trunk/src/mame/drivers/cps1.c
| r242559 | r242560 | |
| 11518 | 11518 | m_maincpu->space(AS_PROGRAM).install_readwrite_handler(0xff0000, 0xffffff, read16_delegate(FUNC(cps_state::ganbare_ram_r),this), write16_delegate(FUNC(cps_state::ganbare_ram_w),this)); |
| 11519 | 11519 | } |
| 11520 | 11520 | |
| 11521 | READ16_MEMBER(cps_state::dinohunt_sound_r) |
| 11522 | { |
| 11523 | /*TODO: understand what's really going on here. According to MT05805; |
| 11524 | "I think that the values written are only qsound leftovers (after a lot of 0xFF values, |
| 11525 | there is the same qsound starting sequence, eg: 0x88, 0xFF, 0x0B, 0x00, 0x00, 0x00, ...)."*/ |
| 11526 | return 0xff; |
| 11527 | } |
| 11528 | |
| 11521 | 11529 | DRIVER_INIT_MEMBER(cps_state,dinohunt) |
| 11522 | 11530 | { |
| 11523 | 11531 | // is this shared with the new sound hw? |
| 11524 | | UINT8* ram = (UINT8*)m_maincpu->space(AS_PROGRAM).install_ram(0xf18000, 0xf19fff); |
| 11525 | | memset(ram,0xff,0x2000); |
| 11526 | | m_maincpu->space(AS_PROGRAM).install_read_handler(0xfc0000, 0xfc0001, read16_delegate(FUNC(cps_state::cps1_in2_r), this)); |
| 11532 | m_maincpu->space(AS_PROGRAM).install_read_handler(0xf18000, 0xf19fff, read16_delegate(FUNC(cps_state::dinohunt_sound_r), this)); |
| 11533 | m_maincpu->space(AS_PROGRAM).install_read_port(0xfc0000, 0xfc0001, "IN2"); ; |
| 11534 | // the ym2151 doesn't seem to be used. Is it actually on the PCB? |
| 11535 | |
| 11527 | 11536 | DRIVER_INIT_CALL(cps1); |
| 11528 | 11537 | } |
| 11529 | 11538 | |