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/tsispch.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/tsispch.cpp')
-rw-r--r-- | src/mame/drivers/tsispch.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/mame/drivers/tsispch.cpp b/src/mame/drivers/tsispch.cpp index 1ba51dcba2e..0d328891f0d 100644 --- a/src/mame/drivers/tsispch.cpp +++ b/src/mame/drivers/tsispch.cpp @@ -190,7 +190,7 @@ READ16_MEMBER( tsispch_state::dsp_data_r ) { upd7725_device *upd7725 = machine().device<upd7725_device>("dsp"); #ifdef DEBUG_DSP - UINT8 temp; + uint8_t temp; temp = upd7725->snesdsp_read(true); fprintf(stderr, "dsp data read: %02x\n", temp); return temp; @@ -212,7 +212,7 @@ READ16_MEMBER( tsispch_state::dsp_status_r ) { upd7725_device *upd7725 = machine().device<upd7725_device>("dsp"); #ifdef DEBUG_DSP - UINT8 temp; + uint8_t temp; temp = upd7725->snesdsp_read(false); fprintf(stderr, "dsp status read: %02x\n", temp); return temp; @@ -251,8 +251,8 @@ void tsispch_state::machine_reset() DRIVER_INIT_MEMBER(tsispch_state,prose2k) { - UINT8 *dspsrc = (UINT8 *)(memregion("dspprgload")->base()); - UINT32 *dspprg = (UINT32 *)(memregion("dspprg")->base()); + uint8_t *dspsrc = (uint8_t *)(memregion("dspprgload")->base()); + uint32_t *dspprg = (uint32_t *)(memregion("dspprg")->base()); fprintf(stderr,"driver init\n"); // unpack 24 bit 7720 data into 32 bit space and shuffle it so it can run as 7725 code // data format as-is in dspsrc: (L = always 0, X = doesn't matter) @@ -270,23 +270,23 @@ DRIVER_INIT_MEMBER(tsispch_state,prose2k) // b1 15 16 17 18 19 20 21 22 -> 22 21 20 19 18 17 16 15 // b2 L 8 9 10 11 12 13 14 -> 14 13 12 11 10 9 8 7 // b3 0 1 2 3 4 5 6 7 -> 6 5 X X 3 2 1 0 - UINT8 byte1t; - UINT16 byte23t; + uint8_t byte1t; + uint16_t byte23t; for (int i = 0; i < 0x600; i+= 3) { byte1t = BITSWAP8(dspsrc[0+i], 0, 1, 2, 3, 4, 5, 6, 7); // here's where things get disgusting: if the first byte was an OP or RT, do the following: if ((byte1t&0x80) == 0x00) // op or rt instruction { - byte23t = BITSWAP16( (((UINT16)dspsrc[1+i]<<8)|dspsrc[2+i]), 8, 9, 10, 15, 11, 12, 13, 14, 0, 1, 2, 3, 4, 5, 6, 7); + byte23t = BITSWAP16( (((uint16_t)dspsrc[1+i]<<8)|dspsrc[2+i]), 8, 9, 10, 15, 11, 12, 13, 14, 0, 1, 2, 3, 4, 5, 6, 7); } else if ((byte1t&0xC0) == 0x80) // jp instruction { - byte23t = BITSWAP16( (((UINT16)dspsrc[1+i]<<8)|dspsrc[2+i]), 8, 9, 15, 15, 15, 10, 11, 12, 13, 14, 0, 1, 2, 3, 6, 7); + byte23t = BITSWAP16( (((uint16_t)dspsrc[1+i]<<8)|dspsrc[2+i]), 8, 9, 15, 15, 15, 10, 11, 12, 13, 14, 0, 1, 2, 3, 6, 7); } else // ld instruction { - byte23t = BITSWAP16( (((UINT16)dspsrc[1+i]<<8)|dspsrc[2+i]), 8, 9, 10, 11, 12, 13, 14, 0, 1, 2, 3, 3, 4, 5, 6, 7); + byte23t = BITSWAP16( (((uint16_t)dspsrc[1+i]<<8)|dspsrc[2+i]), 8, 9, 10, 11, 12, 13, 14, 0, 1, 2, 3, 3, 4, 5, 6, 7); } *dspprg = byte1t<<24 | byte23t<<8; |