diff options
Diffstat (limited to 'src/mame/includes/midyunit.h')
-rw-r--r-- | src/mame/includes/midyunit.h | 60 |
1 files changed, 30 insertions, 30 deletions
diff --git a/src/mame/includes/midyunit.h b/src/mame/includes/midyunit.h index 14f49304044..f4a92955fcf 100644 --- a/src/mame/includes/midyunit.h +++ b/src/mame/includes/midyunit.h @@ -17,20 +17,20 @@ /* protection data types */ struct protection_data { - UINT16 reset_sequence[3]; - UINT16 data_sequence[100]; + uint16_t reset_sequence[3]; + uint16_t data_sequence[100]; }; struct dma_state_t { - UINT32 offset; /* source offset, in bits */ - INT32 rowbytes; /* source bytes to skip each row */ - INT32 xpos; /* x position, clipped */ - INT32 ypos; /* y position, clipped */ - INT32 width; /* horizontal pixel count */ - INT32 height; /* vertical pixel count */ - UINT16 palette; /* palette base */ - UINT16 color; /* current foreground color with palette */ + uint32_t offset; /* source offset, in bits */ + int32_t rowbytes; /* source bytes to skip each row */ + int32_t xpos; /* x position, clipped */ + int32_t ypos; /* y position, clipped */ + int32_t width; /* horizontal pixel count */ + int32_t height; /* vertical pixel count */ + uint16_t palette; /* palette base */ + uint16_t color; /* current foreground color with palette */ }; @@ -70,29 +70,29 @@ public: optional_device<williams_adpcm_sound_device> m_adpcm_sound; optional_device<generic_latch_8_device> m_soundlatch; - required_shared_ptr<UINT16> m_generic_paletteram_16; - optional_shared_ptr<UINT8> m_gfx_rom; - required_shared_ptr<UINT16> m_mainram; + required_shared_ptr<uint16_t> m_generic_paletteram_16; + optional_shared_ptr<uint8_t> m_gfx_rom; + required_shared_ptr<uint16_t> m_mainram; optional_ioport_array<6> m_ports; - std::unique_ptr<UINT16[]> m_cmos_ram; - UINT32 m_cmos_page; - UINT16 m_prot_result; - UINT16 m_prot_sequence[3]; - UINT8 m_prot_index; - UINT8 m_term2_analog_select; + std::unique_ptr<uint16_t[]> m_cmos_ram; + uint32_t m_cmos_page; + uint16_t m_prot_result; + uint16_t m_prot_sequence[3]; + uint8_t m_prot_index; + uint8_t m_term2_analog_select; const struct protection_data *m_prot_data; - UINT8 m_cmos_w_enable; - UINT8 m_chip_type; - UINT16 *m_t2_hack_mem; - UINT8 *m_cvsd_protection_base; - UINT8 m_autoerase_enable; - UINT32 m_palette_mask; + uint8_t m_cmos_w_enable; + uint8_t m_chip_type; + uint16_t *m_t2_hack_mem; + uint8_t *m_cvsd_protection_base; + uint8_t m_autoerase_enable; + uint32_t m_palette_mask; std::unique_ptr<pen_t[]> m_pen_map; - std::unique_ptr<UINT16[]> m_local_videoram; - UINT8 m_videobank_select; - UINT8 m_yawdim_dma; - UINT16 m_dma_register[16]; + std::unique_ptr<uint16_t[]> m_local_videoram; + uint8_t m_videobank_select; + uint8_t m_yawdim_dma; + uint16_t m_dma_register[16]; dma_state_t m_dma_state; DECLARE_WRITE16_MEMBER(midyunit_cmos_w); DECLARE_READ16_MEMBER(midyunit_cmos_r); @@ -147,7 +147,7 @@ public: protected: virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override; - void dma_draw(UINT16 command); + void dma_draw(uint16_t command); void init_generic(int bpp, int sound, int prot_start, int prot_end); void term2_init_common(write16_delegate hack_w); }; |