Previous | 199869 Revisions | Next |
r32746 Tuesday 14th October, 2014 at 18:45:24 UTC by David Haywood |
---|
bl scroll (nw) |
[src/mame/drivers] | mario.c |
[src/mame/includes] | mario.h |
[src/mame/video] | mario.c |
r32745 | r32746 | |
---|---|---|
76 | 76 | DECLARE_WRITE8_MEMBER(mario_gfxbank_w); |
77 | 77 | DECLARE_WRITE8_MEMBER(mario_palettebank_w); |
78 | 78 | DECLARE_WRITE8_MEMBER(mario_scroll_w); |
79 | DECLARE_WRITE8_MEMBER(mariobl_scroll_w); | |
79 | 80 | DECLARE_WRITE8_MEMBER(mario_flip_w); |
80 | 81 | DECLARE_READ8_MEMBER(mario_sh_p1_r); |
81 | 82 | DECLARE_READ8_MEMBER(mario_sh_p2_r); |
r32745 | r32746 | |
---|---|---|
105 | 105 | m_gfx_scroll = data + 17; |
106 | 106 | } |
107 | 107 | |
108 | WRITE8_MEMBER(mario_state::mariobl_scroll_w) | |
109 | { | |
110 | m_gfx_scroll = data; | |
111 | } | |
112 | ||
108 | 113 | WRITE8_MEMBER(mario_state::mario_flip_w) |
109 | 114 | { |
110 | 115 | if (m_flip != (data & 0x01)) |
r32745 | r32746 | |
---|---|---|
178 | 178 | AM_RANGE(0x0000, 0x5fff) AM_ROM |
179 | 179 | AM_RANGE(0x6000, 0x6fff) AM_RAM |
180 | 180 | AM_RANGE(0x7000, 0x71ff) AM_RAM AM_SHARE("spriteram") /* physical sprite ram */ |
181 | AM_RANGE(0x7200, 0x73ff) AM_RAM // attrram? | |
181 | AM_RANGE(0x7200, 0x72ff) AM_RAM // attrram? (only enough for sprites?) | |
182 | AM_RANGE(0x7300, 0x737f) AM_RAM // probably x-scroll? | |
183 | AM_RANGE(0x7380, 0x7380) AM_WRITE(mariobl_scroll_w) | |
184 | AM_RANGE(0x7281, 0x73ff) AM_RAM // seems to have scroll vals for every column on this bl | |
182 | 185 | AM_RANGE(0x7400, 0x77ff) AM_RAM_WRITE(mario_videoram_w) AM_SHARE("videoram") |
183 | 186 | //AM_RANGE(0xa000, 0xa000) AM_READ_PORT("IN1") |
184 | 187 | AM_RANGE(0xa000, 0xa000) AM_READNOP /* watchdog? */ |
Previous | 199869 Revisions | Next |