trunk/src/mame/audio/beezer.c
| r22081 | r22082 | |
| 502 | 502 | return 0; |
| 503 | 503 | /* offsets 2,4,6 read channel 0,1,2 MSBs and latch the LSB*/ |
| 504 | 504 | 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; |
| 507 | 507 | /* offsets 3,5,7 read the LSB latch*/ |
| 508 | 508 | default: /* case 3,5,7 */ |
| 509 | 509 | return state->m_sh6840_LSB_latch; |
trunk/src/mame/audio/exidy.c
| r22081 | r22082 | |
| 689 | 689 | return 0; |
| 690 | 690 | /* offsets 2,4,6 read channel 0,1,2 MSBs and latch the LSB*/ |
| 691 | 691 | 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; |
| 694 | 694 | /* offsets 3,5,7 read the LSB latch*/ |
| 695 | 695 | default: /* case 3,5,7 */ |
| 696 | 696 | return state->m_sh6840_LSB_latch; |