Previous 199869 Revisions Next

r36854 Tuesday 31st March, 2015 at 22:12:28 UTC by Angelo Salese
Merge branch 'master' of https://github.com/mamedev/mame
[src/mame/audio]hng64.c

trunk/src/mame/audio/hng64.c
r245365r245366
194194//  logerror("hng64_sound_port_0008_w %04x %04x\n", data, mem_mask);
195195   // 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
196196
197
197   printf("transfer\n");
198198   m_audiocpu->dreq3_w(data&1);
199199//  m_audiocpu->hack_w(1);
200200
r245365r245366
339339   // these are very active, maybe they feed back into the v53 via one of the IRQ pins?  TM2 toggles more rapidly than TM1
340340//  logerror("tcu_tm1_cb %02x\n", state);
341341   //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
342345}
343346
344347WRITE_LINE_MEMBER(hng64_state::tcu_tm2_cb)
r245365r245366
347350//  logerror("tcu_tm2_cb %02x\n", state);
348351
349352   // 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   }
352372   //i++;
353373   //if (i == 3) i = 0;
374   #endif
354375}
355376
356377


Previous 199869 Revisions Next


© 1997-2024 The MAME Team