src/mess/video/x68k.c
| r8882 | r8883 | |
| 285 | 285 | { |
| 286 | 286 | x68k_sys.mfp.gpio &= ~0x40; // GPIP6 |
| 287 | 287 | machine->primary_screen->update_partial(scan); |
| 288 | | irq_time = machine->primary_screen->time_until_pos(scan,2); |
| 288 | irq_time = machine->primary_screen->time_until_pos(scan,x68k_sys.crtc.hbegin); |
| 289 | 289 | // end of HBlank period clears GPIP6 also? |
| 290 | | end_time = machine->primary_screen->time_until_pos(scan,x68k_sys.crtc.hbegin); |
| 290 | end_time = machine->primary_screen->time_until_pos(scan,x68k_sys.crtc.hend); |
| 291 | 291 | timer_adjust_oneshot(x68k_raster_irq, irq_time, scan); |
| 292 | 292 | timer_set(machine, end_time,NULL,0,x68k_crtc_raster_end); |
| 293 | 293 | logerror("GPIP6: Raster triggered at line %i (%i)\n",scan,machine->primary_screen->vpos()); |
| r8882 | r8883 | |
| 862 | 862 | shift = 4; |
| 863 | 863 | for(pixel=x68k_sys.crtc.hbegin;pixel<=x68k_sys.crtc.hend;pixel++) |
| 864 | 864 | { |
| 865 | | colour = ((x68k_gvram[loc] & (0x000f << page*shift)) >> page*shift); |
| 865 | colour = ((x68k_gvram[loc] >> page*shift) & 0x000f); |
| 866 | 866 | if(colour != 0) |
| 867 | 867 | *BITMAP_ADDR16(bitmap,scanline,pixel) = 512 + (x68k_sys.video.gfx_pal[colour & 0x0f] >> 1); |
| 868 | 868 | loc++; |
| r8882 | r8883 | |
| 880 | 880 | shift = 4; |
| 881 | 881 | for(pixel=x68k_sys.crtc.hbegin;pixel<=x68k_sys.crtc.hend;pixel++) |
| 882 | 882 | { |
| 883 | | colour = ((x68k_gvram[loc] & (0x00ff << page*shift)) >> page*shift); |
| 883 | colour = ((x68k_gvram[loc] >> page*shift) & 0x00ff); |
| 884 | 884 | if(colour != 0) |
| 885 | 885 | *BITMAP_ADDR16(bitmap,scanline,pixel) = 512 + (x68k_sys.video.gfx_pal[colour & 0xff] >> 1); |
| 886 | 886 | loc++; |