| 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 |
| r31559 | r31560 | |
|---|---|---|
| 90 | 90 | DECLARE_WRITE8_MEMBER(video_data_w); |
| 91 | 91 | DECLARE_WRITE8_MEMBER(gameplan_video_command_w); |
| 92 | 92 | DECLARE_WRITE8_MEMBER(leprechn_video_command_w); |
| 93 | DECLARE_READ8_MEMBER(leprechn_videoram_r); | |
| 93 | 94 | DECLARE_WRITE_LINE_MEMBER(video_command_trigger_w); |
| 94 | 95 | void gameplan_get_pens( pen_t *pens ); |
| 95 | 96 | void leprechn_get_pens( pen_t *pens ); |
| r31559 | r31560 | |
|---|---|---|
| 157 | 157 | } |
| 158 | 158 | |
| 159 | 159 | |
| 160 | READ8_MEMBER(gameplan_state::leprechn_videoram_r) | |
| 161 | { | |
| 162 | return m_videoram[m_video_y * (HBSTART - HBEND) + m_video_x]; | |
| 163 | } | |
| 164 | ||
| 165 | ||
| 160 | 166 | TIMER_CALLBACK_MEMBER(gameplan_state::clear_screen_done_callback) |
| 161 | 167 | { |
| 162 | 168 | /* indicate that the we are done clearing the screen */ |
| r31559 | r31560 | |
| 311 | 317 | MCFG_VIDEO_START_OVERRIDE(gameplan_state,gameplan) |
| 312 | 318 | MCFG_VIDEO_RESET_OVERRIDE(gameplan_state,gameplan) |
| 313 | 319 | |
| 314 | MCFG_VIDEO_START_OVERRIDE(gameplan_state,gameplan) | |
| 315 | ||
| 316 | 320 | MCFG_SCREEN_ADD("screen", RASTER) |
| 317 | 321 | MCFG_SCREEN_RAW_PARAMS(GAMEPLAN_PIXEL_CLOCK, HTOTAL, HBEND, HBSTART, VTOTAL, VBEND, VBSTART) |
| 318 | 322 | MCFG_SCREEN_UPDATE_DRIVER(gameplan_state, screen_update_gameplan) |
| r31559 | r31560 | |
|---|---|---|
| 1014 | 1014 | |
| 1015 | 1015 | /* via */ |
| 1016 | 1016 | MCFG_DEVICE_MODIFY("via6522_0") |
| 1017 | MCFG_VIA6522_READPB_HANDLER(READ8(gameplan_state, leprechn_videoram_r)) | |
| 1017 | 1018 | MCFG_VIA6522_WRITEPB_HANDLER(WRITE8(gameplan_state, leprechn_video_command_w)) |
| 1018 | 1019 | MACHINE_CONFIG_END |
| 1019 | 1020 |
| Previous | 199869 Revisions | Next |