diff options
Diffstat (limited to 'src/devices/cpu/hmcs40/hmcs40op.cpp')
-rw-r--r-- | src/devices/cpu/hmcs40/hmcs40op.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/devices/cpu/hmcs40/hmcs40op.cpp b/src/devices/cpu/hmcs40/hmcs40op.cpp index 91777043553..31a74d76905 100644 --- a/src/devices/cpu/hmcs40/hmcs40op.cpp +++ b/src/devices/cpu/hmcs40/hmcs40op.cpp @@ -8,15 +8,15 @@ // internal helpers -inline UINT8 hmcs40_cpu_device::ram_r() +inline uint8_t hmcs40_cpu_device::ram_r() { - UINT8 address = (m_x << 4 | m_y) & m_datamask; + uint8_t address = (m_x << 4 | m_y) & m_datamask; return m_data->read_byte(address) & 0xf; } -inline void hmcs40_cpu_device::ram_w(UINT8 data) +inline void hmcs40_cpu_device::ram_w(uint8_t data) { - UINT8 address = (m_x << 4 | m_y) & m_datamask; + uint8_t address = (m_x << 4 | m_y) & m_datamask; m_data->write_byte(address, data & 0xf); } @@ -81,7 +81,7 @@ void hmcs40_cpu_device::op_xamr() // XAMR m: Exchange A and MR(m) // determine MR(Memory Register) location - UINT8 address = m_op & 0xf; + uint8_t address = m_op & 0xf; // HMCS42: MR0 on file 0, MR4-MR15 on file 4 (there is no file 1-3) // HMCS43: MR0-MR3 on file 0-3, MR4-MR15 on file 4 @@ -93,7 +93,7 @@ void hmcs40_cpu_device::op_xamr() address |= 0xf0; address &= m_datamask; - UINT8 old_a = m_a; + uint8_t old_a = m_a; m_a = m_data->read_byte(address) & 0xf; m_data->write_byte(address, old_a & 0xf); } @@ -160,13 +160,13 @@ void hmcs40_cpu_device::op_xsp() // XSP (XY): Exchange X and SPX, Y and SPY, or NOP if 0 if (m_op & 1) { - UINT8 old_x = m_x; + uint8_t old_x = m_x; m_x = m_spx; m_spx = old_x; } if (m_op & 2) { - UINT8 old_y = m_y; + uint8_t old_y = m_y; m_y = m_spy; m_spy = old_y; } @@ -192,7 +192,7 @@ void hmcs40_cpu_device::op_lbm() void hmcs40_cpu_device::op_xma() { // XMA (XY): Exchange Memory and A - UINT8 old_a = m_a; + uint8_t old_a = m_a; m_a = ram_r(); ram_w(old_a); op_xsp(); @@ -201,7 +201,7 @@ void hmcs40_cpu_device::op_xma() void hmcs40_cpu_device::op_xmb() { // XMB (XY): Exchange Memory and B - UINT8 old_b = m_b; + uint8_t old_b = m_b; m_b = ram_r(); ram_w(old_b); op_xsp(); @@ -357,7 +357,7 @@ void hmcs40_cpu_device::op_rotl() void hmcs40_cpu_device::op_rotr() { // ROTR: Rotate Right A with Carry - UINT8 c = m_a & 1; + uint8_t c = m_a & 1; m_a = m_a >> 1 | m_c << 3; m_c = c; } @@ -470,7 +470,7 @@ void hmcs40_cpu_device::op_lpu() void hmcs40_cpu_device::op_tbr() { // TBR p: Table Branch - UINT16 address = m_a | m_b << 4 | m_c << 8 | (m_op & 7) << 9 | (m_pc & ~0x3f); + uint16_t address = m_a | m_b << 4 | m_c << 8 | (m_op & 7) << 9 | (m_pc & ~0x3f); m_pc = address & m_pcmask; } @@ -661,8 +661,8 @@ void hmcs40_cpu_device::op_p() { // P p: Pattern Generation m_icount--; - UINT16 address = m_a | m_b << 4 | m_c << 8 | (m_op & 7) << 9 | (m_pc & ~0x3f); - UINT16 o = m_program->read_word((address & m_prgmask) << 1); + uint16_t address = m_a | m_b << 4 | m_c << 8 | (m_op & 7) << 9 | (m_pc & ~0x3f); + uint16_t o = m_program->read_word((address & m_prgmask) << 1); // destination is determined by the 2 highest bits if (o & 0x100) |