Previous 199869 Revisions Next

r22082 Monday 25th March, 2013 at 16:28:57 UTC by Fabio Priuli
exidy.c: fixed an out-of-range access spot by gcc-4.9. [Jürgen Buchmüller]
beezer.c: fixed an out-of-range access spot by gcc-4.9. [Jürgen Buchmüller]
[src/mame/audio]beezer.c exidy.c

trunk/src/mame/audio/beezer.c
r22081r22082
502502      return 0;
503503      /* offsets 2,4,6 read channel 0,1,2 MSBs and latch the LSB*/
504504      case 2: case 4: case 6:
505      state->m_sh6840_LSB_latch = state->m_sh6840_timer[((offset<<1)-1)].counter.b.l;
506      return state->m_sh6840_timer[((offset<<1)-1)].counter.b.h;
505      state->m_sh6840_LSB_latch = state->m_sh6840_timer[((offset>>1)-1)].counter.b.l;
506      return state->m_sh6840_timer[((offset>>1)-1)].counter.b.h;
507507      /* offsets 3,5,7 read the LSB latch*/
508508      default: /* case 3,5,7 */
509509      return state->m_sh6840_LSB_latch;
trunk/src/mame/audio/exidy.c
r22081r22082
689689      return 0;
690690      /* offsets 2,4,6 read channel 0,1,2 MSBs and latch the LSB*/
691691      case 2: case 4: case 6:
692      state->m_sh6840_LSB_latch = state->m_sh6840_timer[((offset<<1)-1)].counter.b.l;
693      return state->m_sh6840_timer[((offset<<1)-1)].counter.b.h;
692      state->m_sh6840_LSB_latch = state->m_sh6840_timer[((offset>>1)-1)].counter.b.l;
693      return state->m_sh6840_timer[((offset>>1)-1)].counter.b.h;
694694      /* offsets 3,5,7 read the LSB latch*/
695695      default: /* case 3,5,7 */
696696      return state->m_sh6840_LSB_latch;

Previous 199869 Revisions Next


© 1997-2024 The MAME Team