diff options
author | 2016-10-22 13:13:17 +0200 | |
---|---|---|
committer | 2016-10-22 13:13:17 +0200 | |
commit | ddb290d5f615019c33c42b8d94e5a5254cabcf33 (patch) | |
tree | a70f688b0df3acd19da7b1151e5902e3c6af3fa5 /src/emu/drivers/testcpu.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/emu/drivers/testcpu.cpp')
-rw-r--r-- | src/emu/drivers/testcpu.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/emu/drivers/testcpu.cpp b/src/emu/drivers/testcpu.cpp index 51bfa457694..c52222f6e1a 100644 --- a/src/emu/drivers/testcpu.cpp +++ b/src/emu/drivers/testcpu.cpp @@ -40,7 +40,7 @@ public: // timer callback; used to wrest control of the system virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override { - static const UINT32 sample_instructions[] = + static const uint32_t sample_instructions[] = { 0x3d40f900, // li r10,0xf9000000 0x394af000, // addi r10,r10,-0x1000 @@ -108,7 +108,7 @@ public: void dump_state(bool disassemble) { char buffer[256]; - UINT8 instruction[32]; + uint8_t instruction[32]; buffer[0] = 0; int bytes = 0; if (disassemble) @@ -123,7 +123,7 @@ public: } // output the registers - printf("PC : %08X", UINT32(m_cpu->state_int(PPC_PC))); + printf("PC : %08X", uint32_t(m_cpu->state_int(PPC_PC))); if (disassemble && bytes > 0) { printf(" => "); @@ -134,12 +134,12 @@ public: printf("\n"); for (int regnum = 0; regnum < 32; regnum++) { - printf("R%-2d: %08X ", regnum, UINT32(m_cpu->state_int(PPC_R0 + regnum))); + printf("R%-2d: %08X ", regnum, uint32_t(m_cpu->state_int(PPC_R0 + regnum))); if (regnum % 4 == 3) printf("\n"); } printf("CR : %08X LR : %08X CTR: %08X XER: %08X\n", - UINT32(m_cpu->state_int(PPC_CR)), UINT32(m_cpu->state_int(PPC_LR)), - UINT32(m_cpu->state_int(PPC_CTR)), UINT32(m_cpu->state_int(PPC_XER))); + uint32_t(m_cpu->state_int(PPC_CR)), uint32_t(m_cpu->state_int(PPC_LR)), + uint32_t(m_cpu->state_int(PPC_CTR)), uint32_t(m_cpu->state_int(PPC_XER))); for (int regnum = 0; regnum < 32; regnum++) { printf("F%-2d: %10g ", regnum, u2d(m_cpu->state_int(PPC_F0 + regnum))); @@ -150,8 +150,8 @@ public: // report reads from anywhere READ64_MEMBER( general_r ) { - UINT64 fulloffs = offset; - UINT64 result = fulloffs + (fulloffs << 8) + (fulloffs << 16) + (fulloffs << 24) + (fulloffs << 32); + uint64_t fulloffs = offset; + uint64_t result = fulloffs + (fulloffs << 8) + (fulloffs << 16) + (fulloffs << 24) + (fulloffs << 32); printf("Read from %08X & %08X%08X = %08X%08X\n", offset * 8, (int)((mem_mask&0xffffffff00000000LL) >> 32) , (int)(mem_mask&0xffffffff), (int)((result&0xffffffff00000000LL) >> 32), (int)(result&0xffffffff)); return result; } @@ -165,7 +165,7 @@ public: private: // internal state required_device<ppc603e_device> m_cpu; - required_shared_ptr<UINT64> m_ram; + required_shared_ptr<uint64_t> m_ram; address_space *m_space; }; |