summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/deco156.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/deco156.cpp')
-rw-r--r--src/mame/drivers/deco156.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/mame/drivers/deco156.cpp b/src/mame/drivers/deco156.cpp
index be319f612bb..f273a4ad6a2 100644
--- a/src/mame/drivers/deco156.cpp
+++ b/src/mame/drivers/deco156.cpp
@@ -44,12 +44,12 @@ public:
optional_device<okim6295_device> m_oki2;
optional_device<decospr_device> m_sprgen;
required_device<palette_device> m_palette;
- required_shared_ptr<UINT32> m_generic_paletteram_32;
+ required_shared_ptr<uint32_t> m_generic_paletteram_32;
/* memory */
- UINT16 m_pf1_rowscroll[0x800/2];
- UINT16 m_pf2_rowscroll[0x800/2];
- std::unique_ptr<UINT16[]> m_spriteram;
+ uint16_t m_pf1_rowscroll[0x800/2];
+ uint16_t m_pf2_rowscroll[0x800/2];
+ std::unique_ptr<uint16_t[]> m_spriteram;
DECLARE_WRITE32_MEMBER(hvysmsh_eeprom_w);
DECLARE_WRITE32_MEMBER(wcvol95_nonbuffered_palette_w);
DECLARE_WRITE32_MEMBER(deco156_nonbuffered_palette_w);
@@ -63,7 +63,7 @@ public:
DECLARE_DRIVER_INIT(hvysmsh);
DECLARE_DRIVER_INIT(wcvol95);
virtual void video_start() override;
- UINT32 screen_update_wcvol95(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
+ uint32_t screen_update_wcvol95(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
INTERRUPT_GEN_MEMBER(deco32_vbl_interrupt);
void descramble_sound( const char *tag );
DECO16IC_BANK_CB_MEMBER(bank_callback);
@@ -73,7 +73,7 @@ public:
void deco156_state::video_start()
{
- m_spriteram = std::make_unique<UINT16[]>(0x2000/2);
+ m_spriteram = std::make_unique<uint16_t[]>(0x2000/2);
/* and register the allocated ram so that save states still work */
save_item(NAME(m_pf1_rowscroll));
@@ -82,7 +82,7 @@ void deco156_state::video_start()
}
-UINT32 deco156_state::screen_update_wcvol95(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect)
+uint32_t deco156_state::screen_update_wcvol95(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect)
{
//FIXME: flip_screen_x should not be written!
flip_screen_set_no_update(1);
@@ -656,14 +656,14 @@ ROM_END
void deco156_state::descramble_sound( const char *tag )
{
- UINT8 *rom = memregion(tag)->base();
+ uint8_t *rom = memregion(tag)->base();
int length = memregion(tag)->bytes();
- std::vector<UINT8> buf1(length);
- UINT32 x;
+ std::vector<uint8_t> buf1(length);
+ uint32_t x;
for (x = 0; x < length; x++)
{
- UINT32 addr;
+ uint32_t addr;
addr = BITSWAP24 (x,23,22,21,0, 20,
19,18,17,16,