src/mess/drivers/x1.c
| r11548 | r11549 | |
| 1377 | 1377 | { |
| 1378 | 1378 | state->m_crtc_vreg[state->m_crtc_index] = data; |
| 1379 | 1379 | mc6845_register_w(space->machine().device("crtc"), 0,data); |
| 1380 | | |
| 1381 | | /* double pump the pixel clock if we are in 640 x 200 mode */ |
| 1382 | | mc6845_set_clock(space->machine().device("crtc"), (space->machine().primary_screen->width() < 640) ? VDP_CLOCK/48 : VDP_CLOCK/24); |
| 1383 | 1380 | } |
| 1384 | 1381 | } |
| 1385 | 1382 | |
| r11548 | r11549 | |
| 1929 | 1926 | //printf("PPI Port C read\n"); |
| 1930 | 1927 | /* |
| 1931 | 1928 | x--- ---- Printer port output |
| 1932 | | -x-- ---- 320 mode (r/w) |
| 1929 | -x-- ---- 320 mode (r/w), divider for the pixel clock |
| 1933 | 1930 | --x- ---- i/o mode (r/w) |
| 1934 | 1931 | ---x ---- smooth scroll enabled (?) |
| 1935 | 1932 | ---- ---x cassette output data |
| r11548 | r11549 | |
| 1952 | 1949 | x1_state *state = device->machine().driver_data<x1_state>(); |
| 1953 | 1950 | state->m_hres_320 = data & 0x40; |
| 1954 | 1951 | |
| 1952 | /* set up the pixel clock according to the above divider */ |
| 1953 | mc6845_set_clock(device->machine().device("crtc"), VDP_CLOCK/((state->m_hres_320) ? 48 : 24)); |
| 1954 | |
| 1955 | 1955 | if(((data & 0x20) == 0) && (state->m_io_switch & 0x20)) |
| 1956 | 1956 | state->m_io_bank_mode = 1; |
| 1957 | 1957 | |