diff options
author | 2016-10-22 13:13:17 +0200 | |
---|---|---|
committer | 2016-10-22 13:13:17 +0200 | |
commit | ddb290d5f615019c33c42b8d94e5a5254cabcf33 (patch) | |
tree | a70f688b0df3acd19da7b1151e5902e3c6af3fa5 /src/mame/drivers/toki.cpp | |
parent | 333bff8de64dfaeb98134000412796b4fdef970b (diff) |
NOTICE (TYPE NAME CONSOLIDATION)
Use standard uint64_t, uint32_t, uint16_t or uint8_t instead of UINT64, UINT32, UINT16 or UINT8
also use standard int64_t, int32_t, int16_t or int8_t instead of INT64, INT32, INT16 or INT8
Diffstat (limited to 'src/mame/drivers/toki.cpp')
-rw-r--r-- | src/mame/drivers/toki.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/mame/drivers/toki.cpp b/src/mame/drivers/toki.cpp index 890280abee3..d4c59f0a4e1 100644 --- a/src/mame/drivers/toki.cpp +++ b/src/mame/drivers/toki.cpp @@ -856,8 +856,8 @@ ROM_END DRIVER_INIT_MEMBER(toki_state,toki) { - UINT8 *ROM = memregion("oki")->base(); - std::vector<UINT8> buffer(0x20000); + uint8_t *ROM = memregion("oki")->base(); + std::vector<uint8_t> buffer(0x20000); int i; memcpy(&buffer[0],ROM,0x20000); @@ -870,16 +870,16 @@ DRIVER_INIT_MEMBER(toki_state,toki) DRIVER_INIT_MEMBER(toki_state,tokib) { - std::vector<UINT8> temp(65536 * 2); + std::vector<uint8_t> temp(65536 * 2); int i, offs, len; - UINT8 *rom; + uint8_t *rom; /* merge background tile graphics together */ len = memregion("gfx3")->bytes(); rom = memregion("gfx3")->base(); for (offs = 0; offs < len; offs += 0x20000) { - UINT8 *base = &rom[offs]; + uint8_t *base = &rom[offs]; memcpy (&temp[0], base, 65536 * 2); for (i = 0; i < 16; i++) { @@ -893,7 +893,7 @@ DRIVER_INIT_MEMBER(toki_state,tokib) rom = memregion("gfx4")->base(); for (offs = 0; offs < len; offs += 0x20000) { - UINT8 *base = &rom[offs]; + uint8_t *base = &rom[offs]; memcpy (&temp[0], base, 65536 * 2); for (i = 0; i < 16; i++) { @@ -914,7 +914,7 @@ DRIVER_INIT_MEMBER(toki_state,jujuba) /* Program ROMs are bitswapped */ { int i; - UINT16 *prgrom = (UINT16*)memregion("maincpu")->base(); + uint16_t *prgrom = (uint16_t*)memregion("maincpu")->base(); for (i = 0; i < 0x60000/2; i++) { @@ -927,21 +927,21 @@ DRIVER_INIT_MEMBER(toki_state,jujuba) /* Decrypt data for z80 program */ { - UINT8 *decrypt = m_seibu_sound->get_custom_decrypt(); - UINT8 *rom = memregion("audiocpu")->base(); + uint8_t *decrypt = m_seibu_sound->get_custom_decrypt(); + uint8_t *rom = memregion("audiocpu")->base(); memcpy(decrypt,rom,0x20000); for (int i = 0;i < 0x2000;i++) { - UINT8 src = decrypt[i]; + uint8_t src = decrypt[i]; rom[i] = src^0x55; } } { - UINT8 *ROM = memregion("oki")->base(); - std::vector<UINT8> buffer(0x20000); + uint8_t *ROM = memregion("oki")->base(); + std::vector<uint8_t> buffer(0x20000); int i; memcpy(&buffer[0],ROM,0x20000); |