Previous 15994 Revisions Next

r3849 Tuesday 16th December, 2008 at 17:38:54 UTC by Wilbert Pol
[GAMECOM] Removed MDRV_CPU_VBLANK_INT_HACK.
[src/mess/drivers]gamecom.c
[src/mess/includes]gamecom.h
[src/mess/video]gamecom.c

src/mess/video/gamecom.c
r3848r3849
55
66static int scanline;
77static unsigned int base_address;
8static emu_timer *scanline_timer;
89
9#ifdef UNUSED_FUNCTION
10void gamecom_video_init( void ) {
11   scanline = 0;
12}
13#endif
14
15INTERRUPT_GEN( gamecom_scanline ) {
10static TIMER_CALLBACK( gamecom_scanline ) {
1611   // draw line
1712   if ( scanline == 0 ) {
1813      base_address = ( internal_registers[SM8521_LCDC] & 0x40 ) ? 0x2000 : 0x0000;
r3848r3849
6762   scanline = ( scanline + 1 ) % Y_PIXELS;
6863}
6964
65VIDEO_START( gamecom )
66{
67   VIDEO_START_CALL( generic_bitmapped );
68   scanline_timer = timer_alloc( machine, gamecom_scanline, NULL );
69   timer_adjust_periodic( scanline_timer, video_screen_get_time_until_pos( machine->primary_screen, 0, 0 ), 0, video_screen_get_scan_period( machine->primary_screen ) );
70
71}
72
src/mess/includes/gamecom.h
r3848r3849
167167
168168/*----------- defined in video/gamecom.c -----------*/
169169
170extern INTERRUPT_GEN( gamecom_scanline );
170VIDEO_START( gamecom );
171171
172172
173173#endif /* GAMECOM_H_ */
src/mess/drivers/gamecom.c
r3848r3849
1616***************************************************************************/
1717
1818#include "driver.h"
19#include "deprecat.h"
2019#include "includes/gamecom.h"
2120#include "cpu/sm8500/sm8500.h"
2221#include "devices/cartslot.h"
r3848r3849
9493   MDRV_CPU_ADD( "main", SM8500, XTAL_11_0592MHz/2 )   /* actually it's an sm8521 microcontroller containing an sm8500 cpu */
9594   MDRV_CPU_PROGRAM_MAP( gamecom_mem_map, 0 )
9695   MDRV_CPU_CONFIG( gamecom_cpu_config )
97   MDRV_CPU_VBLANK_INT_HACK(gamecom_scanline, 200)
9896
9997   MDRV_SCREEN_ADD("main", LCD)
10098   MDRV_SCREEN_REFRESH_RATE( 59.732155 )
r3848r3849
104102   MDRV_MACHINE_RESET( gamecom )
105103
106104   /* video hardware */
107   MDRV_VIDEO_START( generic_bitmapped )
105   MDRV_VIDEO_START( gamecom )
108106   MDRV_VIDEO_UPDATE( generic_bitmapped )
109107
110108   MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16)

Previous 15994 Revisions Next


© 1998-2018 The MESS Team