src/mess/machine/zx.c
| r1914 | r1915 | |
| 7 | 7 | ****************************************************************************/ |
| 8 | 8 | |
| 9 | 9 | #include "driver.h" |
| 10 | | #include "deprecat.h" |
| 11 | 10 | #include "cpu/z80/z80.h" |
| 12 | 11 | #include "includes/zx.h" |
| 13 | 12 | #include "devices/cassette.h" |
| r1914 | r1915 | |
| 91 | 90 | zx_ula_bkgnd(1); |
| 92 | 91 | if (ula_frame_vsync == 2) |
| 93 | 92 | { |
| 94 | | cpu_spinuntil_time(video_screen_get_time_until_pos(0, Machine->screen[0].height - 1, 0)); |
| 95 | | ula_scanline_count = Machine->screen[0].height - 1; |
| 93 | cpu_spinuntil_time(video_screen_get_time_until_pos(0, machine->screen[0].height - 1, 0)); |
| 94 | ula_scanline_count = machine->screen[0].height - 1; |
| 96 | 95 | logerror ("S: %d B: %d\n", video_screen_get_vpos(0), video_screen_get_hpos(0)); |
| 97 | 96 | } |
| 98 | 97 | |
| r1914 | r1915 | |
| 131 | 130 | data &= readinputport(7); |
| 132 | 131 | if ((offset & 0x8000) == 0) |
| 133 | 132 | data &= readinputport(8); |
| 134 | | if (Machine->screen[0].refresh > 55) |
| 133 | if (machine->screen[0].refresh > 55) |
| 135 | 134 | data &= ~0x40; |
| 136 | 135 | |
| 137 | 136 | if (ula_irq_active) |
| r1914 | r1915 | |
| 196 | 195 | data &= readinputport(7); |
| 197 | 196 | if ((offset & 0x8000) == 0) |
| 198 | 197 | data &= readinputport(8); |
| 199 | | if (Machine->screen[0].refresh > 55) |
| 198 | if (machine->screen[0].refresh > 55) |
| 200 | 199 | data &= ~0x40; |
| 201 | 200 | |
| 202 | 201 | if (ula_irq_active) |