diff options
author | 2016-10-22 13:13:17 +0200 | |
---|---|---|
committer | 2016-10-22 13:13:17 +0200 | |
commit | ddb290d5f615019c33c42b8d94e5a5254cabcf33 (patch) | |
tree | a70f688b0df3acd19da7b1151e5902e3c6af3fa5 /src/devices/cpu/pps4/pps4dasm.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/devices/cpu/pps4/pps4dasm.cpp')
-rw-r--r-- | src/devices/cpu/pps4/pps4dasm.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/devices/cpu/pps4/pps4dasm.cpp b/src/devices/cpu/pps4/pps4dasm.cpp index cc7f3f488ae..410f7986a60 100644 --- a/src/devices/cpu/pps4/pps4dasm.cpp +++ b/src/devices/cpu/pps4/pps4dasm.cpp @@ -93,7 +93,7 @@ static const char *token_str[t_COUNT] = { "sag" /* special address generation */ }; -static const UINT16 table[] = { +static const uint16_t table[] = { /* 00 */ t_LBL | t_I8c, /* 01 */ t_TML | t_I4 | t_I8, /* 02 */ t_TML | t_I4 | t_I8, @@ -369,10 +369,10 @@ static const UINT16 table[] = { CPU_DISASSEMBLE( pps4 ) { - UINT32 flags = 0; + uint32_t flags = 0; unsigned PC = pc; - UINT8 op = OP(pc++); - UINT32 tok = table[op]; + uint8_t op = OP(pc++); + uint32_t tok = table[op]; char *dst = nullptr; if (0 == (tok & t_MASK)) { @@ -383,53 +383,53 @@ CPU_DISASSEMBLE( pps4 ) if (tok & t_I3c) { // 3 bit immediate, complemented - UINT8 i = ~op & 7; + uint8_t i = ~op & 7; if (0 != i) // only print if non-zero dst += sprintf(dst, "%x", i); } if (tok & t_I4) { // 4 bit immediate - UINT8 i = op & 15; + uint8_t i = op & 15; dst += sprintf(dst, "%x", i); } if (tok & t_I4c) { // 4 bit immediate, complemented - UINT8 i = ~op & 15; + uint8_t i = ~op & 15; dst += sprintf(dst, "%x", i); } if (tok & t_I4p) { // 4 bit immediate offset into page 3 - UINT8 i = op & 15; + uint8_t i = op & 15; dst += sprintf(dst, "[%x]", 0x0c0 | i); } if (tok & t_I6p) { // 6 bit immediate offset into current page - UINT8 i = op & 63; + uint8_t i = op & 63; dst += sprintf(dst, "%x", (PC & ~63) | i); } if (tok & t_I6i) { // 6 bit immediate offset into page 3 - UINT16 i6p3 = (3 << 6) | (op & 63); + uint16_t i6p3 = (3 << 6) | (op & 63); // 8 bit absolute offset at 0x0100 - UINT16 addr = (1 << 8) | 0; // ROM[ip3] can't be reached!? + uint16_t addr = (1 << 8) | 0; // ROM[ip3] can't be reached!? (void)addr; // avoid unused variable warning dst += sprintf(dst, "[%x]", i6p3); } if (tok & t_I8) { // 8 bit immediate I/O port address - UINT8 arg = ARG(pc++); + uint8_t arg = ARG(pc++); dst += sprintf(dst, "%02x", arg); } if (tok & t_I8c) { // 8 bit immediate offset into page - UINT16 arg = ~ARG(pc++) & 255; + uint16_t arg = ~ARG(pc++) & 255; dst += sprintf(dst, "%02x", arg); } |