mirror of
https://github.com/mamedev/mame.git
synced 2024-11-16 07:48:32 +01:00
sslam: try to fix graphics
This commit is contained in:
parent
a2672df9b6
commit
3e2915660f
2 changed files with 7 additions and 0 deletions
|
@ -379,6 +379,9 @@ void sslam_state::sslam_program_map(address_map &map)
|
|||
map(0x000000, 0xffffff).rom(); /* I don't honestly know where the rom is mirrored .. so all unmapped reads / writes go to rom */
|
||||
|
||||
map(0x000400, 0x07ffff).ram();
|
||||
// maybe video register, protection in fpga, rand? Nothing about this is hardware correct.
|
||||
map(0x000458, 0x00045b).lrw16([this](offs_t offset) { return offset ? m_unk_458 : m_unk_458 >> 16; }, "unk_458_r",
|
||||
[this](offs_t offset, uint16_t data) { if(offset) m_unk_458 = (data & 0xfff) * 0xb1; }, "unk_458_w");
|
||||
map(0x100000, 0x103fff).ram().w(FUNC(sslam_state::sslam_bg_tileram_w)).share("bg_tileram");
|
||||
map(0x104000, 0x107fff).ram().w(FUNC(sslam_state::sslam_md_tileram_w)).share("md_tileram");
|
||||
map(0x108000, 0x10ffff).ram().w(FUNC(sslam_state::sslam_tx_tileram_w)).share("tx_tileram");
|
||||
|
@ -693,11 +696,13 @@ void sslam_state::machine_start()
|
|||
m_track = 0;
|
||||
m_melody = 0;
|
||||
m_bar = 0;
|
||||
m_unk_458 = 0;
|
||||
|
||||
save_item(NAME(m_track));
|
||||
save_item(NAME(m_melody));
|
||||
save_item(NAME(m_bar));
|
||||
save_item(NAME(m_snd_bank));
|
||||
save_item(NAME(m_unk_458));
|
||||
|
||||
m_music_timer = machine().scheduler().timer_alloc(timer_expired_delegate(FUNC(sslam_state::music_playback),this));
|
||||
}
|
||||
|
|
|
@ -62,6 +62,8 @@ protected:
|
|||
uint8_t m_oki_command;
|
||||
uint8_t m_oki_bank;
|
||||
|
||||
uint32_t m_unk_458;
|
||||
|
||||
tilemap_t *m_bg_tilemap;
|
||||
tilemap_t *m_tx_tilemap;
|
||||
tilemap_t *m_md_tilemap;
|
||||
|
|
Loading…
Reference in a new issue