src/mess/video/vic6567.c
| r2531 | r2532 | |
| 242 | 242 | { |
| 243 | 243 | memset(&vic2, 0, sizeof(vic2)); |
| 244 | 244 | |
| 245 | vic2.pal = pal; |
| 245 | 246 | vic2.lines = VIC2_LINES; |
| 246 | 247 | |
| 247 | 248 | vic2.dma_read = dma_read; |
| 248 | 249 | vic2.dma_read_color = dma_read_color; |
| 249 | 250 | vic2.interrupt = irq; |
| 250 | 251 | vic2.vic2e = chip_vic2e; |
| 251 | | vic2.pal = pal; |
| 252 | |
| 252 | 253 | vic2.on = TRUE; |
| 253 | 254 | } |
| 254 | 255 | |
| r2531 | r2532 | |
| 1322 | 1323 | timer_set (attotime_make(0, 0), NULL, 1, vic2_timer_timeout); |
| 1323 | 1324 | } |
| 1324 | 1325 | } |
| 1325 | | if (vic2.rasterline == C64_2_RASTERLINE (RASTERLINE)) |
| 1326 | if (vic2.rasterline == C64_2_RASTERLINE(RASTERLINE)) |
| 1326 | 1327 | { |
| 1327 | 1328 | if (vic2.on) |
| 1328 | 1329 | vic2_drawlines (vic2.lastline, vic2.rasterline); |
src/mess/video/vic6567.h
| r2531 | r2532 | |
| 27 | 27 | #define VIC2_VSIZE 200 |
| 28 | 28 | /* of course you clock select an other clock, but for accurate */ |
| 29 | 29 | /* video timing */ |
| 30 | | #define VIC6567_CLOCK (8180000/8) |
| 31 | | #define VIC6569_CLOCK (7880000/8) |
| 30 | #define VIC6567_CLOCK 1022730 |
| 31 | /* (8180000/8) old value */ |
| 32 | #define VIC6569_CLOCK 985250 |
| 33 | /* (7880000/8) old value */ |
| 32 | 34 | /* pixel clock 8 mhz */ |
| 33 | 35 | /* accesses to memory with 2 megahertz */ |
| 34 | 36 | /* needs 2 memory accesses for 8 pixel */ |
| r2531 | r2532 | |
| 39 | 41 | |
| 40 | 42 | /* pal 50 Hz vertical screen refresh, screen consists of 312 lines |
| 41 | 43 | * ntsc 60 Hz vertical screen refresh, screen consists of 262 lines */ |
| 42 | | #define VIC6567_LINES 261 |
| 44 | #define VIC6567_LINES 262 |
| 43 | 45 | #define VIC6569_LINES 312 |
| 44 | 46 | #define VIC2_LINES (vic2.pal?VIC6569_LINES:VIC6567_LINES) |
| 45 | 47 | |