diff options
author | 2016-11-19 05:35:54 +1100 | |
---|---|---|
committer | 2016-11-19 05:38:48 +1100 | |
commit | 8179a84458204a5e767446fcf7d10f032a40fd0c (patch) | |
tree | 16105e1667f811dcb24dbf0fc255166cb06df5c2 /src/devices/cpu/sharc/sharcops.hxx | |
parent | 1b489fe83034072149fb0637b20c7ba57dc72a7a (diff) |
Introduce u8/u16/u32/u64/s8/s16/s32/s64
* New abbreviated types are in osd and util namespaces, and also in global namespace for things that #include "emu.h"
* Get rid of import of cstdint types to global namespace (C99 does this anyway)
* Remove the cstdint types from everything in emu
* Get rid of U64/S64 macros
* Fix a bug in dps16 caused by incorrect use of macro
* Fix debugcon not checking for "do " prefix case-insensitively
* Fix a lot of messed up tabulation
* More constexpr
* Fix up many __names
Diffstat (limited to 'src/devices/cpu/sharc/sharcops.hxx')
-rw-r--r-- | src/devices/cpu/sharc/sharcops.hxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/devices/cpu/sharc/sharcops.hxx b/src/devices/cpu/sharc/sharcops.hxx index e3140f00352..4454bf0cf69 100644 --- a/src/devices/cpu/sharc/sharcops.hxx +++ b/src/devices/cpu/sharc/sharcops.hxx @@ -440,8 +440,8 @@ void adsp21062_device::SET_UREG(int ureg, uint32_t data) case 0xd: switch(reg) { - case 0xc: m_core->px &= U64(0xffffffffffff0000); m_core->px |= (data & 0xffff); break; /* PX1 */ - case 0xd: m_core->px &= U64(0x000000000000ffff); m_core->px |= (uint64_t)data << 16; break; /* PX2 */ + case 0xc: m_core->px &= 0xffffffffffff0000U; m_core->px |= (data & 0xffff); break; /* PX1 */ + case 0xd: m_core->px &= 0x000000000000ffffU; m_core->px |= (uint64_t)data << 16; break; /* PX2 */ default: fatalerror("SHARC: SET_UREG: unknown register %08X at %08X\n", ureg, m_core->pc); } break; @@ -2668,29 +2668,29 @@ void adsp21062_device::sharcop_bit_reverse() /* push/pop stacks / flush cache */ void adsp21062_device::sharcop_push_pop_stacks() { - if (m_core->opcode & U64(0x008000000000)) + if (m_core->opcode & 0x008000000000U) { fatalerror("sharcop_push_pop_stacks: push loop not implemented\n"); } - if (m_core->opcode & U64(0x004000000000)) + if (m_core->opcode & 0x004000000000U) { fatalerror("sharcop_push_pop_stacks: pop loop not implemented\n"); } - if (m_core->opcode & U64(0x002000000000)) + if (m_core->opcode & 0x002000000000U) { //fatalerror("sharcop_push_pop_stacks: push sts not implemented\n"); PUSH_STATUS_STACK(); } - if (m_core->opcode & U64(0x001000000000)) + if (m_core->opcode & 0x001000000000U) { //fatalerror("sharcop_push_pop_stacks: pop sts not implemented\n"); POP_STATUS_STACK(); } - if (m_core->opcode & U64(0x000800000000)) + if (m_core->opcode & 0x000800000000U) { PUSH_PC(m_core->pcstk); } - if (m_core->opcode & U64(0x000400000000)) + if (m_core->opcode & 0x000400000000U) { POP_PC(); } |