Previous 15994 Revisions Next

r932 Thursday 6th September, 2007 at 19:29:03 UTC by Wilbert Pol
[PCE] Fix handling of internal scroll register.
[src/mess/video]vdc.c

src/mess/video/vdc.c
r931r932
6363   /* Draw the last scanline */
6464   if ( vdc.current_bitmap_line >= 14 && vdc.current_bitmap_line < 14 + 242 ) {
6565      /* We are in the active display area */
66      vdc.y_scroll++;
6667      if ( vdc.current_segment == STATE_VDW ) {
6768         pce_refresh_line( vdc.current_bitmap_line, vdc.current_segment_line );
6869      } else {
r931r932
7879   vdc.curline += 1;
7980   vdc.current_segment_line += 1;
8081   vdc.raster_count += 1;
81   vdc.y_scroll++;
8282
8383   if ( vdc.satb_countdown ) {
8484      vdc.satb_countdown -= 1;
r931r932
146146   }
147147
148148   /* generate interrupt on line compare if necessary */
149   if ( vdc.raster_count == vdc.vdc_data[RCR].w && vdc.vdc_data[CR].w & CR_RC && vdc.vdc_data[RCR].w < 0x0147 ) {
149   if ( vdc.raster_count == vdc.vdc_data[RCR].w && vdc.vdc_data[CR].w & CR_RC ) {
150150      vdc.status |= VDC_RR;
151151      ret = 1;
152152   }

Previous 15994 Revisions Next


© 1998-2018 The MESS Team