Previous 15994 Revisions Next

r9067 Tuesday 7th September, 2010 at 14:02:49 UTC by Wilbert Pol
[CPC family] Fix for several off by 1 line issues.
[src/mess/machine]amstrad.c

src/mess/machine/amstrad.c
r9066r9067
10141014   if ( ! gate_array.vsync && state )
10151015   {
10161016      /* Reset the amstrad_CRTC_HS_After_VS_Counter */
1017      gate_array.hsync_after_vsync_counter = 2;
1017      gate_array.hsync_after_vsync_counter = 3;
10181018
10191019      /* Start of new frame */
10201020      gate_array.y = -1;
r9066r9067
10361036   if ( ! gate_array.vsync && state )
10371037   {
10381038      /* Reset the amstrad_CRTC_HS_After_VS_Counter */
1039      gate_array.hsync_after_vsync_counter = 2;
1039      gate_array.hsync_after_vsync_counter = 3;
10401040
10411041      /* Start of new frame */
10421042      gate_array.y = -1;
r9066r9067
10621062
10631063      gate_array.ma = mc6845_get_ma( mc6845 );
10641064      gate_array.ra = mc6845_get_ra( mc6845 );
1065logerror("y = %d; ma = %02x; ra = %02x, address = %04x\n", gate_array.y, gate_array.ma, gate_array.ra, ( ( gate_array.ma & 0x3000 ) << 2 ) | ( ( gate_array.ra & 0x07 ) << 11 ) | ( ( gate_array.ma & 0x3ff ) << 1 ) );
10651066      amstrad_gate_array_get_video_data( device->machine );
10661067      asic.de_start = 1;
10671068   }
r9066r9067
11211122   amstrad_init_lookups();
11221123
11231124   gate_array.bitmap = auto_bitmap_alloc( machine, screen->width(), screen->height(), screen->format() );
1124   gate_array.hsync_after_vsync_counter = 2;
1125   gate_array.hsync_after_vsync_counter = 3;
11251126}
11261127
11271128

Previous 15994 Revisions Next


© 1998-2018 The MESS Team