mirror of
https://github.com/holub/mame
synced 2025-04-20 15:32:45 +03:00
shangkid.cpp: redo 20be0ade4a
as per comments
This commit is contained in:
parent
7779684946
commit
b4eb5f9b5b
@ -458,7 +458,8 @@ void shangkid_state::shangkid(machine_config &config)
|
||||
void shangkid_state::dynamski_map(address_map &map)
|
||||
{
|
||||
map(0x0000, 0x7fff).rom();
|
||||
map(0xc000, 0xdbff).ram().share("videoram"); /* tilemap */
|
||||
map(0xc000, 0xcbff).ram().share("videoram"); /* tilemap */
|
||||
map(0xd000, 0xdbff).ram().share("spriteram"); /* tilemap */
|
||||
map(0xe000, 0xe007).w("mainlatch", FUNC(ls259_device::write_d0));
|
||||
map(0xe800, 0xe800).portr("SYSTEM");
|
||||
map(0xe801, 0xe801).portr("P1");
|
||||
|
@ -285,13 +285,13 @@ void shangkid_state::dynamski_draw_sprites(bitmap_ind16 &bitmap, const rectangle
|
||||
int color;
|
||||
for( i=0x7e; i>=0x00; i-=2 )
|
||||
{
|
||||
bank = m_videoram[0x1b80+i];
|
||||
attr = m_videoram[0x1b81+i];
|
||||
bank = m_spriteram[0xb80+i];
|
||||
attr = m_spriteram[0xb81+i];
|
||||
tile = m_videoram[0xb80+i];
|
||||
color = m_videoram[0xb81+i];
|
||||
sy = 240-m_videoram[0x1380+i];
|
||||
sy = 240-m_spriteram[0x380+i];
|
||||
|
||||
sx = m_videoram[0x1381+i]-64+8+16;
|
||||
sx = m_spriteram[0x381+i]-64+8+16;
|
||||
if( attr&1 ) sx += 0x100;
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user