trunk/src/emu/cpu/nec/v53.c
| r244839 | r244840 | |
| 402 | 402 | } |
| 403 | 403 | } |
| 404 | 404 | |
| 405 | WRITE_LINE_MEMBER(v53_base_device::hack_trampoline_w) |
| 406 | { |
| 407 | if (!(m_SCTL & 0x02)) |
| 408 | { |
| 409 | m_dma_71071mode->hack_w(state); |
| 410 | } |
| 411 | else |
| 412 | { |
| 413 | printf("v53: hack_trampoline_w not in 71071mode\n"); |
| 414 | } |
| 415 | } |
| 405 | 416 | |
| 406 | | |
| 407 | 417 | /* General stuff */ |
| 408 | 418 | |
| 409 | 419 | static ADDRESS_MAP_START( v53_internal_port_map, AS_IO, 16, v53_base_device ) |
| r244839 | r244840 | |
| 441 | 451 | // AM_RANGE(0xfffe, 0xffff) // (reserved , 0xff00) // 0xffff |
| 442 | 452 | ADDRESS_MAP_END |
| 443 | 453 | |
| 454 | WRITE_LINE_MEMBER(v53_base_device::dma_hrq_changed) |
| 455 | { |
| 456 | // pass this back to the driver? / expose externally? |
| 457 | m_dma_71071mode->hack_w(state); |
| 458 | } |
| 459 | |
| 460 | WRITE8_MEMBER(v53_base_device::dma_io_3_w) |
| 461 | { |
| 462 | logerror("dma_io_3_w %02x\n", data); |
| 463 | } |
| 464 | |
| 465 | READ8_MEMBER(v53_base_device::dma_memin_r) |
| 466 | { |
| 467 | UINT8 ret = rand(); |
| 468 | logerror("dma_memin_r offset %08x %02x\n", offset, ret); |
| 469 | return ret; |
| 470 | } |
| 471 | |
| 472 | |
| 444 | 473 | static MACHINE_CONFIG_FRAGMENT( v53 ) |
| 445 | 474 | MCFG_DEVICE_ADD("pit", PIT8254, 0) // functionality identical to uPD71054 |
| 446 | 475 | MCFG_PIT8253_CLK0(16000000/2/8) |
| 447 | 476 | //MCFG_PIT8253_OUT0_HANDLER(WRITELINE(v53_base_device, pit_out0)) |
| 448 | 477 | |
| 449 | 478 | MCFG_DEVICE_ADD("upd71071dma", UPD71071_V53, 4000000) |
| 479 | MCFG_I8237_OUT_HREQ_CB(WRITELINE(v53_base_device, dma_hrq_changed)) |
| 480 | MCFG_I8237_OUT_IOW_3_CB(WRITE8(v53_base_device, dma_io_3_w)) |
| 481 | MCFG_I8237_IN_MEMR_CB(READ8(v53_base_device, dma_memin_r)) |
| 482 | |
| 483 | |
| 450 | 484 | |
| 451 | | |
| 452 | 485 | MACHINE_CONFIG_END |
| 453 | 486 | |
| 454 | 487 | machine_config_constructor v53_base_device::device_mconfig_additions() const |
trunk/src/mame/audio/hng64.c
| r244839 | r244840 | |
| 149 | 149 | |
| 150 | 150 | WRITE16_MEMBER(hng64_state::hng64_sound_port_0008_w) |
| 151 | 151 | { |
| 152 | | printf("hng64_sound_port_0008_w %04x %04x\n", data, mem_mask); |
| 152 | // printf("hng64_sound_port_0008_w %04x %04x\n", data, mem_mask); |
| 153 | 153 | // seems to one or more of the DMARQ on the V53, writes here when it expects DMA channel 3 to transfer ~0x20 bytes just after startup |
| 154 | |
| 155 | |
| 154 | 156 | m_audiocpu->dreq3_trampoline_w(data&1); |
| 157 | // m_audiocpu->hack_trampoline_w(1); |
| 158 | |
| 155 | 159 | } |
| 156 | 160 | |
| 157 | 161 | static ADDRESS_MAP_START( hng_sound_io, AS_IO, 16, hng64_state ) |