summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/kaneko16.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/kaneko16.cpp')
-rw-r--r--src/mame/drivers/kaneko16.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/mame/drivers/kaneko16.cpp b/src/mame/drivers/kaneko16.cpp
index d8b5850b267..1b180d3d015 100644
--- a/src/mame/drivers/kaneko16.cpp
+++ b/src/mame/drivers/kaneko16.cpp
@@ -249,7 +249,7 @@ WRITE8_MEMBER(kaneko16_state::eeprom_w)
READ16_MEMBER(kaneko16_berlwall_state::berlwall_oki_r)
{
- UINT16 ret;
+ uint16_t ret;
if (mem_mask == 0xff00) // reads / writes to the upper byte only appear to act as a mirror to the lower byte, 16-bit reads/writes only access the lower byte.
{
@@ -690,8 +690,8 @@ ADDRESS_MAP_END
void kaneko16_state::kaneko16_common_oki_bank_w( const char *bankname, const char* tag, int bank, size_t fixedsize, size_t bankedsize )
{
- UINT32 bankaddr;
- UINT8* samples = memregion(tag)->base();
+ uint32_t bankaddr;
+ uint8_t* samples = memregion(tag)->base();
size_t length = memregion(tag)->bytes();
bankaddr = fixedsize + (bankedsize * bank);
@@ -2332,7 +2332,7 @@ TIMER_DEVICE_CALLBACK_MEMBER(kaneko16_state::shogwarr_interrupt)
}
/*
-static const UINT16 shogwarr_default_eeprom[64] = {
+static const uint16_t shogwarr_default_eeprom[64] = {
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
0x4B41, 0x4E45, 0x4B4F, 0x2F41, 0x544F, 0x5020, 0x3139, 0x3932,
0x4655, 0x4A49, 0xFFFF, 0x4D41, 0x2042, 0x5553, 0x5445, 0x5220,
@@ -2345,7 +2345,7 @@ static const UINT16 shogwarr_default_eeprom[64] = {
*/
// the above eeprom looks corrupt, some of the text is wrong, the game never writes this text tho.. maybe it should be as below
// leaving both here incase they relate to which tables get 'locked out' by the MCU somehow
-static const UINT16 shogwarr_default_eeprom[64] = {
+static const uint16_t shogwarr_default_eeprom[64] = {
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
0x4B41, 0x4E45, 0x4B4F, 0x2F41, 0x544F, 0x5020, 0x3139, 0x3932,
0x4655, 0x4A49, 0x5941, 0x4D41, 0x2042, 0x5553, 0x5445, 0x5220,
@@ -2425,7 +2425,7 @@ static MACHINE_CONFIG_START( shogwarr, kaneko16_shogwarr_state )
MACHINE_CONFIG_END
-static const UINT16 brapboys_default_eeprom[64] = {
+static const uint16_t brapboys_default_eeprom[64] = {
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
0x0000, 0x0005, 0x0006, 0x2030, 0x0003, 0x6818, 0x0101, 0x0101,
0x0101, 0x0001, 0x0004, 0x0008, 0x4B41, 0x4E45, 0x4B4F, 0x2020,
@@ -2474,7 +2474,7 @@ void kaneko16_state::kaneko16_unscramble_tiles(const char *region)
return;
}
- UINT8 *ram = tile_region->base();
+ uint8_t *ram = tile_region->base();
int size = tile_region->bytes();
for (int i = 0; i < size; i ++)
@@ -2495,7 +2495,7 @@ void kaneko16_state::kaneko16_expand_sample_banks(const char *region)
possible combinations of these and swap between them.
*/
int bank;
- UINT8 *src0;
+ uint8_t *src0;
if (memregion(region)->bytes() < 0x40000 * 16)
fatalerror("gtmr SOUND1 region too small\n");
@@ -2504,8 +2504,8 @@ void kaneko16_state::kaneko16_expand_sample_banks(const char *region)
src0 = memregion(region)->base();
for (bank = 15; bank > 0; bank--)
{
- UINT8 *srcn = src0 + 0x10000 * (bank < 3 ? 3 : bank);
- UINT8 *dst = src0 + 0x40000 * bank;
+ uint8_t *srcn = src0 + 0x10000 * (bank < 3 ? 3 : bank);
+ uint8_t *dst = src0 + 0x40000 * bank;
memcpy(dst + 0x30000, srcn + 0x00000, 0x10000);
memcpy(dst + 0x00000, src0 + 0x00000, 0x30000);