Previous 15994 Revisions Next

r762 Monday 30th July, 2007 at 15:54:42 UTC by Wilbert Pol
[SMS/GG] Fixed video code to prevent the video code from crashing during a hard reset. (bug #1304)
[docs]messnew.txt
[src/mess/video]smsvdp.c

src/mess/video/smsvdp.c
r761r762
189189      In theory the driver could have a REGION_GFX1 and/or REGION_GFX2 memory region
190190      of it's own. So this code could potentially cause a clash.
191191   */
192   if ( VRAM == NULL ) {
193      VRAM = new_memory_region( Machine, REGION_GFX1, VRAM_SIZE, ROM_REQUIRED );
194   }
195   if ( CRAM == NULL ) {
196      CRAM = new_memory_region( Machine, REGION_GFX2, MAX_CRAM_SIZE, ROM_REQUIRED );
197   }
198   if ( lineBuffer == NULL ) {
199      lineBuffer = auto_malloc( 256 * 5 * sizeof(int) );
200      memset( lineBuffer, 0, 256 * 5 * sizeof(int) );
201   }
192   VRAM = new_memory_region( Machine, REGION_GFX1, VRAM_SIZE, ROM_REQUIRED );
193   CRAM = new_memory_region( Machine, REGION_GFX2, MAX_CRAM_SIZE, ROM_REQUIRED );
194   lineBuffer = auto_malloc( 256 * 5 * sizeof(int) );
195   memset( lineBuffer, 0, 256 * 5 * sizeof(int) );
202196
203197   /* Clear RAM */
204198   memset(reg, 0, NUM_OF_REGISTER);
r761r762
225219
226220   set_display_settings();
227221
228   if ( smsvdp_display_timer == NULL ) {
229      smsvdp_display_timer = mame_timer_alloc( smsvdp_display_callback );
230   }
222   smsvdp_display_timer = mame_timer_alloc( smsvdp_display_callback );
231223   mame_timer_adjust( smsvdp_display_timer, video_screen_get_time_until_pos( 0, 0, 0 ), 0, video_screen_get_scan_period( 0 ) );
232224   return (0);
233225}
docs/messnew.txt
r761r762
3636  VDP register gets set and the VINT bit of the status register is set.  (bug
3737  #1162) [Wilbert Pol]
3838
39- [SMS/GG] Fixed video code to prevent the video code from crashing during
40  a hard reset.  (bug #1304) [Wilbert Pol]
41
3942- [THOMSON] Fixed regressions introduced with 6821 changes.  [Antoine Mine]
4043
4144- [THOMSON] Fixed TO8/TO9+ ram bank handler (fixes BASIC 1.0 bug).  [Antoine

Previous 15994 Revisions Next


© 1998-2018 The MESS Team