trunk/src/mame/audio/hng64.c
| r245365 | r245366 | |
| 194 | 194 | // logerror("hng64_sound_port_0008_w %04x %04x\n", data, mem_mask); |
| 195 | 195 | // 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 |
| 196 | 196 | |
| 197 | | |
| 197 | printf("transfer\n"); |
| 198 | 198 | m_audiocpu->dreq3_w(data&1); |
| 199 | 199 | // m_audiocpu->hack_w(1); |
| 200 | 200 | |
| r245365 | r245366 | |
| 339 | 339 | // these are very active, maybe they feed back into the v53 via one of the IRQ pins? TM2 toggles more rapidly than TM1 |
| 340 | 340 | // logerror("tcu_tm1_cb %02x\n", state); |
| 341 | 341 | //m_audiocpu->set_input_line(5, state? ASSERT_LINE:CLEAR_LINE); // not accurate, just so we have a trigger |
| 342 | /* Almost likely wrong */ |
| 343 | m_audiocpu->set_input_line(2, state? ASSERT_LINE :CLEAR_LINE); |
| 344 | |
| 342 | 345 | } |
| 343 | 346 | |
| 344 | 347 | WRITE_LINE_MEMBER(hng64_state::tcu_tm2_cb) |
| r245365 | r245366 | |
| 347 | 350 | // logerror("tcu_tm2_cb %02x\n", state); |
| 348 | 351 | |
| 349 | 352 | // NOT ACCURATE, just so that all the interrupts get triggered for now. |
| 350 | | //static int i = 0; |
| 351 | | //m_audiocpu->set_input_line(i, state? ASSERT_LINE:CLEAR_LINE); |
| 353 | #if 0 |
| 354 | static int i; |
| 355 | if(machine().input().code_pressed_once(KEYCODE_Z)) |
| 356 | i++; |
| 357 | |
| 358 | if(machine().input().code_pressed_once(KEYCODE_X)) |
| 359 | i--; |
| 360 | |
| 361 | if(i < 0) |
| 362 | i = 0; |
| 363 | if(i > 7) |
| 364 | i = 7; |
| 365 | |
| 366 | printf("trigger %02x %d\n",i,state); |
| 367 | |
| 368 | //if(machine().input().code_pressed_once(KEYCODE_C)) |
| 369 | { |
| 370 | m_audiocpu->set_input_line(i, state? ASSERT_LINE :CLEAR_LINE); |
| 371 | } |
| 352 | 372 | //i++; |
| 353 | 373 | //if (i == 3) i = 0; |
| 374 | #endif |
| 354 | 375 | } |
| 355 | 376 | |
| 356 | 377 | |