summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/megadriv.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/megadriv.cpp')
-rw-r--r--src/mame/drivers/megadriv.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/mame/drivers/megadriv.cpp b/src/mame/drivers/megadriv.cpp
index 53bf399171f..50f0203c989 100644
--- a/src/mame/drivers/megadriv.cpp
+++ b/src/mame/drivers/megadriv.cpp
@@ -25,10 +25,10 @@ READ8_MEMBER(md_cons_state::mess_md_io_read_data_port)
{
int portnum = offset;
- UINT8 retdata;
+ uint8_t retdata;
int controller;
- UINT8 helper_6b = (m_megadrive_io_ctrl_regs[portnum] & 0x3f) | 0xc0; // bits 6 & 7 always come from megadrive_io_data_regs
- UINT8 helper_3b = (m_megadrive_io_ctrl_regs[portnum] & 0x7f) | 0x80; // bit 7 always comes from megadrive_io_data_regs
+ uint8_t helper_6b = (m_megadrive_io_ctrl_regs[portnum] & 0x3f) | 0xc0; // bits 6 & 7 always come from megadrive_io_data_regs
+ uint8_t helper_3b = (m_megadrive_io_ctrl_regs[portnum] & 0x7f) | 0x80; // bit 7 always comes from megadrive_io_data_regs
switch (portnum)
{
@@ -94,7 +94,7 @@ READ8_MEMBER(md_cons_state::mess_md_io_read_data_port)
/* Otherwise it's a 3 buttons Joypad */
else
{
- UINT8 svp_test = 0;
+ uint8_t svp_test = 0;
if (m_cart)
svp_test = m_cart->read_test();
@@ -526,10 +526,10 @@ DRIVER_INIT_MEMBER(md_cons_state, md_jpn)
DEVICE_IMAGE_LOAD_MEMBER( md_cons_state, _32x_cart )
{
- UINT32 length;
- std::vector<UINT8> temp_copy;
- UINT16 *ROM16;
- UINT32 *ROM32;
+ uint32_t length;
+ std::vector<uint8_t> temp_copy;
+ uint16_t *ROM16;
+ uint32_t *ROM32;
int i;
if (image.software_entry() == nullptr)
@@ -547,15 +547,15 @@ DEVICE_IMAGE_LOAD_MEMBER( md_cons_state, _32x_cart )
/* Copy the cart image in the locations the driver expects */
// Notice that, by using pick_integer, we are sure the code works on both LE and BE machines
- ROM16 = (UINT16 *) memregion("gamecart")->base();
+ ROM16 = (uint16_t *) memregion("gamecart")->base();
for (i = 0; i < length; i += 2)
ROM16[i / 2] = pick_integer_be(&temp_copy[0], i, 2);
- ROM32 = (UINT32 *) memregion("gamecart_sh2")->base();
+ ROM32 = (uint32_t *) memregion("gamecart_sh2")->base();
for (i = 0; i < length; i += 4)
ROM32[i / 4] = pick_integer_be(&temp_copy[0], i, 4);
- ROM16 = (UINT16 *) memregion("maincpu")->base();
+ ROM16 = (uint16_t *) memregion("maincpu")->base();
for (i = 0x00; i < length; i += 2)
ROM16[i / 2] = pick_integer_be(&temp_copy[0], i, 2);
@@ -563,7 +563,7 @@ DEVICE_IMAGE_LOAD_MEMBER( md_cons_state, _32x_cart )
}
-void md_cons_state::_32x_scanline_callback(int x, UINT32 priority, UINT16 &lineptr)
+void md_cons_state::_32x_scanline_callback(int x, uint32_t priority, uint16_t &lineptr)
{
if (m_32x)
m_32x->_32x_render_videobuffer_to_screenbuffer(x, priority, lineptr);