Previous 199869 Revisions Next

r35296 Thursday 26th February, 2015 at 15:11:29 UTC by Olivier Galibert
mu100 work
[src/mess/drivers]ymmu100.c

trunk/src/mess/drivers/ymmu100.c
r243807r243808
276276{
277277   int chan = (offset >> 6) & 0x3f;
278278   int slot = offset & 0x3f;
279   if(slot == 0x38 && (data == 0xffff || data == 0xff00 || data == 0x00ff))
280      return;
281   if(slot == 0x39 && (data == 0x08ff || data == 0x20ff || data == 0xffff))
282      return;
283   if(slot == 0x3a && data == 0xffff)
284      return;
279285   logerror("snd_w %02x.%02x, %04x (%06x)\n", chan, slot, data, m_maincpu->pc());
280286}
281287
282288READ16_MEMBER(mu100_state::adc0_r)
283289{
284   logerror("adc0_r\n");
290   //   logerror("adc0_r\n");
285291   return 0;
286292}
287293
288294READ16_MEMBER(mu100_state::adc2_r)
289295{
290   logerror("adc2_r\n");
296   //   logerror("adc2_r\n");
291297   return 0;
292298}
293299
294300// Put the host switch to pure midi
295301READ16_MEMBER(mu100_state::adc4_r)
296302{
297   return 0;
303   return 0x3ff;
298304}
299305
300306// Battery level
301307READ16_MEMBER(mu100_state::adc6_r)
302308{
303   logerror("adc6_r\n");
309   //   logerror("adc6_r\n");
304310   return 0x3ff;
305311}
306312
r243807r243808
379385
380386READ16_MEMBER(mu100_state::p6_r)
381387{
382   logerror("plug in detect read\n");
388   //   logerror("plug in detect read\n");
383389   return 0x00;
384390}
385391


Previous 199869 Revisions Next


© 1997-2024 The MAME Team