Previous 199869 Revisions Next

r30907 Monday 9th June, 2014 at 02:56:55 UTC by Alex Jackson
nitedrvr.c: 0x80 bytes / 32 cols = 4 rows; also add AM_READNOPs so 6502 dummy reads don't clog the log (nw)
[src/mame/drivers]nitedrvr.c
[src/mame/video]nitedrvr.c

trunk/src/mame/drivers/nitedrvr.c
r30906r30907
4444
4545static ADDRESS_MAP_START( nitedrvr_map, AS_PROGRAM, 8, nitedrvr_state )
4646   AM_RANGE(0x0000, 0x00ff) AM_RAM AM_MIRROR(0x100) // SCRAM
47   AM_RANGE(0x0200, 0x027f) AM_WRITE(nitedrvr_videoram_w) AM_MIRROR(0x180) AM_SHARE("videoram") // PFW
48   AM_RANGE(0x0400, 0x042f) AM_WRITEONLY AM_MIRROR(0x1c0) AM_SHARE("hvc") // POSH, POSV, CHAR
47   AM_RANGE(0x0200, 0x027f) AM_READNOP AM_WRITE(nitedrvr_videoram_w) AM_MIRROR(0x180) AM_SHARE("videoram") // PFW
48   AM_RANGE(0x0400, 0x042f) AM_READNOP AM_WRITEONLY AM_MIRROR(0x1c0) AM_SHARE("hvc") // POSH, POSV, CHAR
4949   AM_RANGE(0x0430, 0x043f) AM_WRITE(watchdog_reset_w) AM_MIRROR(0x1c0)
5050   AM_RANGE(0x0600, 0x07ff) AM_READ(nitedrvr_in0_r)
5151   AM_RANGE(0x0800, 0x09ff) AM_READ(nitedrvr_in1_r)
trunk/src/mame/video/nitedrvr.c
r30906r30907
2323
2424void nitedrvr_state::video_start()
2525{
26   m_bg_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(nitedrvr_state::get_bg_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 32, 8);
26   m_bg_tilemap = &machine().tilemap().create(m_gfxdecode, tilemap_get_info_delegate(FUNC(nitedrvr_state::get_bg_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 32, 4);
2727}
2828
2929void nitedrvr_state::draw_box(bitmap_ind16 &bitmap, const rectangle &cliprect, int bx, int by, int ex, int ey)
r30906r30907
5555   
5656   // don't wrap playfield
5757   rectangle clip = cliprect;
58   if (clip.max_y > 63) clip.max_y = 63;
58   if (clip.max_y > 31) clip.max_y = 31;
5959
6060   m_bg_tilemap->draw(screen, bitmap, clip, 0, 0);
6161   draw_roadway(bitmap, cliprect);

Previous 199869 Revisions Next


© 1997-2024 The MAME Team