mirror of
https://github.com/holub/mame
synced 2025-04-23 00:39:36 +03:00
Fix winrun regression.
This commit is contained in:
parent
f1aa56f2d7
commit
904ccb1603
@ -888,7 +888,7 @@ void namcos2_shared_state::c355_obj_init(int gfxbank, int pal_xor, c355_obj_code
|
||||
else
|
||||
m_c355_obj_code2tile = c355_obj_code2tile_delegate(FUNC(namcos2_shared_state::c355_obj_default_code2tile), this);
|
||||
|
||||
memset(&m_c355_obj_ram[0], 0, memshare("objram")->bytes()); // needed for Nebulas Ray
|
||||
memset(m_c355_obj_ram, 0, sizeof(m_c355_obj_ram)); // needed for Nebulas Ray
|
||||
memset(m_c355_obj_position, 0, sizeof(m_c355_obj_position));
|
||||
}
|
||||
|
||||
|
@ -654,7 +654,7 @@ ADDRESS_MAP_END
|
||||
/*************************************************************/
|
||||
|
||||
static ADDRESS_MAP_START( common_sgunner_am, AS_PROGRAM, 16, namcos2_state )
|
||||
AM_RANGE(0x800000, 0x8141ff) AM_READWRITE(c355_obj_ram_r,c355_obj_ram_w) AM_SHARE("objram")
|
||||
AM_RANGE(0x800000, 0x8141ff) AM_READWRITE(c355_obj_ram_r,c355_obj_ram_w)
|
||||
AM_RANGE(0x818000, 0x818001) AM_WRITENOP
|
||||
AM_RANGE(0xa00000, 0xa0000f) AM_READWRITE_LEGACY(namcos2_68k_key_r,namcos2_68k_key_w)
|
||||
AM_IMPORT_FROM( namcos2_68k_default_cpu_board_am )
|
||||
@ -703,7 +703,7 @@ ADDRESS_MAP_END
|
||||
/*************************************************************/
|
||||
|
||||
static ADDRESS_MAP_START( common_luckywld_am, AS_PROGRAM, 16, namcos2_state )
|
||||
AM_RANGE(0x800000, 0x8141ff) AM_READWRITE(c355_obj_ram_r,c355_obj_ram_w) AM_SHARE("objram")
|
||||
AM_RANGE(0x800000, 0x8141ff) AM_READWRITE(c355_obj_ram_r,c355_obj_ram_w)
|
||||
AM_RANGE(0x818000, 0x818001) AM_NOP /* enable? */
|
||||
AM_RANGE(0x81a000, 0x81a001) AM_WRITENOP /* enable? */
|
||||
AM_RANGE(0x840000, 0x840001) AM_READNOP
|
||||
|
@ -1074,7 +1074,7 @@ READ16_MEMBER(namcos21_state::NAMCO_C139_SCI_register_r){ return 0; }
|
||||
AM_RANGE(0x440000, 0x440001) AM_READWRITE(pointram_data_r,pointram_data_w) \
|
||||
AM_RANGE(0x440002, 0x47ffff) AM_WRITENOP /* (?) Air Combat */ \
|
||||
AM_RANGE(0x480000, 0x4807ff) AM_READWRITE(namcos21_depthcue_r,namcos21_depthcue_w) /* Air Combat */ \
|
||||
AM_RANGE(0x700000, 0x71ffff) AM_READWRITE(c355_obj_ram_r,c355_obj_ram_w) AM_SHARE("objram") \
|
||||
AM_RANGE(0x700000, 0x71ffff) AM_READWRITE(c355_obj_ram_r,c355_obj_ram_w) \
|
||||
AM_RANGE(0x720000, 0x720007) AM_READWRITE(c355_obj_position_r,c355_obj_position_w) \
|
||||
AM_RANGE(0x740000, 0x75ffff) AM_READWRITE(paletteram16_r,paletteram16_w) AM_SHARE("paletteram") \
|
||||
AM_RANGE(0x760000, 0x760001) AM_READWRITE(namcos21_video_enable_r,namcos21_video_enable_w) \
|
||||
@ -1414,7 +1414,7 @@ ADDRESS_MAP_END
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#define DRIVEYES_68K_COMMON \
|
||||
AM_RANGE(0x700000, 0x71ffff) AM_READWRITE(c355_obj_ram_r,c355_obj_ram_w) AM_SHARE("objram") \
|
||||
AM_RANGE(0x700000, 0x71ffff) AM_READWRITE(c355_obj_ram_r,c355_obj_ram_w) \
|
||||
AM_RANGE(0x720000, 0x720007) AM_READWRITE(c355_obj_position_r,c355_obj_position_w) \
|
||||
AM_RANGE(0x740000, 0x75ffff) AM_READWRITE(paletteram16_r,paletteram16_w) AM_SHARE("paletteram") \
|
||||
AM_RANGE(0x760000, 0x760001) AM_READWRITE(namcos21_video_enable_r,namcos21_video_enable_w) \
|
||||
|
@ -98,7 +98,6 @@ public:
|
||||
m_c169_roz_videoram(*this, "rozvideoram", 0),
|
||||
m_c169_roz_gfxbank(0),
|
||||
m_c169_roz_mask(NULL),
|
||||
m_c355_obj_ram(*this, "objram", 0),
|
||||
m_c355_obj_gfxbank(0),
|
||||
m_c355_obj_palxor(0)
|
||||
{ }
|
||||
@ -168,11 +167,11 @@ protected:
|
||||
template<class _BitmapClass>
|
||||
void c355_obj_draw_list(_BitmapClass &bitmap, const rectangle &cliprect, int pri, const UINT16 *pSpriteList16, const UINT16 *pSpriteTable);
|
||||
|
||||
optional_shared_ptr<UINT16> m_c355_obj_ram;
|
||||
c355_obj_code2tile_delegate m_c355_obj_code2tile;
|
||||
int m_c355_obj_gfxbank;
|
||||
int m_c355_obj_palxor;
|
||||
UINT16 m_c355_obj_position[4];
|
||||
UINT16 m_c355_obj_ram[0x20000/2];
|
||||
|
||||
public:
|
||||
// general
|
||||
|
Loading…
Reference in New Issue
Block a user