summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine/gaelco2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/machine/gaelco2.cpp')
-rw-r--r--src/mame/machine/gaelco2.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/mame/machine/gaelco2.cpp b/src/mame/machine/gaelco2.cpp
index 1b6700caf24..e6794b5f42a 100644
--- a/src/mame/machine/gaelco2.cpp
+++ b/src/mame/machine/gaelco2.cpp
@@ -25,10 +25,10 @@ void gaelco2_state::gaelco2_ROM16_split_gfx(const char *src_reg, const char *dst
int i;
/* get a pointer to the source data */
- UINT8 *src = (UINT8 *)memregion(src_reg)->base();
+ uint8_t *src = (uint8_t *)memregion(src_reg)->base();
/* get a pointer to the destination data */
- UINT8 *dst = (UINT8 *)memregion(dst_reg)->base();
+ uint8_t *dst = (uint8_t *)memregion(dst_reg)->base();
/* fill destination areas with the proper data */
for (i = 0; i < length/2; i++){
@@ -287,12 +287,12 @@ WRITE16_MEMBER(gaelco2_state::gaelco2_eeprom_data_w)
***************************************************************************/
-static UINT32 rol(UINT32 x, unsigned int c)
+static uint32_t rol(uint32_t x, unsigned int c)
{
return (x << c) | (x >> (32 - c));
}
-static UINT16 get_lo(UINT32 x)
+static uint16_t get_lo(uint32_t x)
{
return ((x & 0x00000010) << 1) |
((x & 0x00000800) << 3) |
@@ -309,7 +309,7 @@ static UINT16 get_lo(UINT32 x)
((x & 0x00000020) >> 1);
}
-static UINT16 get_hi(UINT32 x)
+static uint16_t get_hi(uint32_t x)
{
return ((x & 0x00001400) >> 0) |
((x & 0x10000000) >> 26) |
@@ -328,7 +328,7 @@ static UINT16 get_hi(UINT32 x)
((x & 0x00000100) >> 1);
}
-static UINT16 get_out(UINT16 x)
+static uint16_t get_out(uint16_t x)
{
return ((x & 0xc840) << 0) |
((x & 0x0080) << 2) |
@@ -344,16 +344,16 @@ static UINT16 get_out(UINT16 x)
((x & 0x0020) >> 2);
}
-UINT16 mangle(UINT32 x)
+uint16_t mangle(uint32_t x)
{
- UINT16 a = get_lo(x);
- UINT16 b = get_hi(x);
+ uint16_t a = get_lo(x);
+ uint16_t b = get_hi(x);
return get_out(((a ^ 0x0010) - (b ^ 0x0024)) ^ 0x5496);
}
READ16_MEMBER(gaelco2_state::snowboar_protection_r)
{
- UINT16 ret = mangle(snowboard_latch);
+ uint16_t ret = mangle(snowboard_latch);
ret = ((ret & 0xff00) >> 8) | ((ret & 0x00ff) << 8);
return ret;