Previous 199869 Revisions Next

r31560 Friday 8th August, 2014 at 19:10:17 UTC by Alex Jackson
gameplan.c: re-hooked up leprechn videoram read, which was removed when old leprechn.c driver was merged into gameplan.c (nw)
[src/mame/drivers]gameplan.c
[src/mame/includes]gameplan.h
[src/mame/video]gameplan.c

trunk/src/mame/includes/gameplan.h
r31559r31560
9090   DECLARE_WRITE8_MEMBER(video_data_w);
9191   DECLARE_WRITE8_MEMBER(gameplan_video_command_w);
9292   DECLARE_WRITE8_MEMBER(leprechn_video_command_w);
93   DECLARE_READ8_MEMBER(leprechn_videoram_r);
9394   DECLARE_WRITE_LINE_MEMBER(video_command_trigger_w);
9495   void gameplan_get_pens( pen_t *pens );
9596   void leprechn_get_pens( pen_t *pens );
trunk/src/mame/video/gameplan.c
r31559r31560
157157}
158158
159159
160READ8_MEMBER(gameplan_state::leprechn_videoram_r)
161{
162   return m_videoram[m_video_y * (HBSTART - HBEND) + m_video_x];
163}
164
165
160166TIMER_CALLBACK_MEMBER(gameplan_state::clear_screen_done_callback)
161167{
162168   /* indicate that the we are done clearing the screen */
r31559r31560
311317   MCFG_VIDEO_START_OVERRIDE(gameplan_state,gameplan)
312318   MCFG_VIDEO_RESET_OVERRIDE(gameplan_state,gameplan)
313319
314   MCFG_VIDEO_START_OVERRIDE(gameplan_state,gameplan)
315
316320   MCFG_SCREEN_ADD("screen", RASTER)
317321   MCFG_SCREEN_RAW_PARAMS(GAMEPLAN_PIXEL_CLOCK, HTOTAL, HBEND, HBSTART, VTOTAL, VBEND, VBSTART)
318322   MCFG_SCREEN_UPDATE_DRIVER(gameplan_state, screen_update_gameplan)
trunk/src/mame/drivers/gameplan.c
r31559r31560
10141014
10151015   /* via */
10161016   MCFG_DEVICE_MODIFY("via6522_0")
1017   MCFG_VIA6522_READPB_HANDLER(READ8(gameplan_state, leprechn_videoram_r))
10171018   MCFG_VIA6522_WRITEPB_HANDLER(WRITE8(gameplan_state, leprechn_video_command_w))
10181019MACHINE_CONFIG_END
10191020

Previous 199869 Revisions Next


© 1997-2024 The MAME Team