diff options
author | mooglyguy <therealmogminer@gmail.com> | 2018-11-29 17:30:05 +0100 |
---|---|---|
committer | mooglyguy <therealmogminer@gmail.com> | 2018-11-29 17:30:05 +0100 |
commit | 75fbb872ef1a24d33392a5efa354fe4a2b753e60 (patch) | |
tree | dc874b4fed2ec02e9bf6529082774a7f9203d83d | |
parent | 3cdf716d64e9de01fd728e3e2006672ebebacaa4 (diff) |
st62xx.cpp: Fixed JRR and JRS opcodes, nw
-rw-r--r-- | src/devices/cpu/st62xx/st62xx.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/devices/cpu/st62xx/st62xx.cpp b/src/devices/cpu/st62xx/st62xx.cpp index 7db029cf05b..3a84f8931b2 100644 --- a/src/devices/cpu/st62xx/st62xx.cpp +++ b/src/devices/cpu/st62xx/st62xx.cpp @@ -533,9 +533,8 @@ void st6228_device::execute_run() const uint8_t rr = m_program->read_byte(m_pc+1); const int8_t ee = (int8_t)m_program->read_byte(m_pc+2); const uint8_t value = m_data->read_byte(rr); - if (BIT(value, b)) - m_pc += 2; - else + m_pc += 2; + if (!BIT(value, b)) m_pc += ee; break; } @@ -545,10 +544,9 @@ void st6228_device::execute_run() const uint8_t rr = m_program->read_byte(m_pc+1); const int8_t ee = (int8_t)m_program->read_byte(m_pc+2); const uint8_t value = m_data->read_byte(rr); + m_pc += 2; if (BIT(value, b)) m_pc += ee; - else - m_pc += 2; break; } case 0x0b: case 0x2b: case 0x4b: case 0x6b: case 0x8b: case 0xab: case 0xcb: case 0xeb: // RES b,rr |