trunk/src/mess/machine/intv.c
| r21040 | r21041 | |
| 16 | 16 | COMBINE_DATA(&m_intvkbd_dualport_ram[offset]); |
| 17 | 17 | |
| 18 | 18 | /* copy the LSB over to the 6502 OP RAM, in case they are opcodes */ |
| 19 | | RAM = memregion("keyboard")->base(); |
| 19 | RAM = m_region_keyboard->base(); |
| 20 | 20 | RAM[offset] = (UINT8) (data >> 0); |
| 21 | 21 | } |
| 22 | 22 | |
| r21040 | r21041 | |
| 33 | 33 | m_intvkbd_dualport_ram[offset] |= ((UINT16) data) << 0; |
| 34 | 34 | |
| 35 | 35 | /* copy over to the 6502 OP RAM, in case they are opcodes */ |
| 36 | | RAM = memregion("keyboard")->base(); |
| 36 | RAM = m_region_keyboard->base(); |
| 37 | 37 | RAM[offset] = data; |
| 38 | 38 | } |
| 39 | 39 | |
| r21040 | r21041 | |
| 657 | 657 | { |
| 658 | 658 | UINT8 column; |
| 659 | 659 | UINT8 row = m_backtab_row; |
| 660 | | //machine().device("maincpu")->execute().adjust_icount(-STIC_ROW_FETCH); |
| 660 | //m_maincpu->adjust_icount(-STIC_ROW_FETCH); |
| 661 | 661 | for(column=0; column < STIC_BACKTAB_WIDTH; column++) |
| 662 | 662 | { |
| 663 | 663 | m_backtab_buffer[row][column] = m_ram16[column + row * STIC_BACKTAB_WIDTH]; |
| r21040 | r21041 | |
| 674 | 674 | m_backtab_row = 0; |
| 675 | 675 | UINT8 row; |
| 676 | 676 | m_maincpu->adjust_icount(-(12*STIC_ROW_BUSRQ+STIC_FRAME_BUSRQ)); // Account for stic cycle stealing |
| 677 | | machine().scheduler().timer_set(machine().device<cpu_device>("maincpu") |
| 678 | | ->cycles_to_attotime(STIC_VBLANK_END), timer_expired_delegate(FUNC(intv_state::intv_interrupt_complete),this)); |
| 677 | machine().scheduler().timer_set(m_maincpu->cycles_to_attotime(STIC_VBLANK_END), timer_expired_delegate(FUNC(intv_state::intv_interrupt_complete),this)); |
| 679 | 678 | for (row=0; row < STIC_BACKTAB_HEIGHT; row++) |
| 680 | 679 | { |
| 681 | 680 | machine().scheduler().timer_set(m_maincpu |