summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu
diff options
context:
space:
mode:
author hap <happppp@users.noreply.github.com>2020-10-11 20:05:10 +0200
committer hap <happppp@users.noreply.github.com>2020-10-11 20:05:10 +0200
commitcc5a693713ce22225e95e9ea70d1993bc58cd21e (patch)
tree137d651f652191917f76fff71b02b54a806104f5 /src/devices/cpu
parentb9d5a7fb4311ab54259318c8632c76d8f7a6c965 (diff)
mcs48: execute_jcc param is a bool, not u8
Diffstat (limited to 'src/devices/cpu')
-rw-r--r--src/devices/cpu/mcs48/mcs48.cpp4
-rw-r--r--src/devices/cpu/mcs48/mcs48.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/devices/cpu/mcs48/mcs48.cpp b/src/devices/cpu/mcs48/mcs48.cpp
index 30ca9335789..7aabcc4348a 100644
--- a/src/devices/cpu/mcs48/mcs48.cpp
+++ b/src/devices/cpu/mcs48/mcs48.cpp
@@ -518,7 +518,7 @@ void mcs48_cpu_device::execute_call(uint16_t address)
conditional jump instruction
-------------------------------------------------*/
-void mcs48_cpu_device::execute_jcc(uint8_t result)
+void mcs48_cpu_device::execute_jcc(bool result)
{
uint16_t pch = m_pc & 0xf00;
uint8_t offset = argument_fetch();
@@ -1247,7 +1247,7 @@ void mcs48_cpu_device::check_irqs()
if (m_irq_polled)
{
m_pc = ((m_prevpc + 1) & 0x7ff) | (m_prevpc & 0x800);
- execute_jcc(1);
+ execute_jcc(true);
}
/* transfer to location 0x03 */
diff --git a/src/devices/cpu/mcs48/mcs48.h b/src/devices/cpu/mcs48/mcs48.h
index 8e4256694ee..024c084c7f4 100644
--- a/src/devices/cpu/mcs48/mcs48.h
+++ b/src/devices/cpu/mcs48/mcs48.h
@@ -258,7 +258,7 @@ protected:
void execute_addc(uint8_t dat);
void execute_jmp(uint16_t address);
void execute_call(uint16_t address);
- void execute_jcc(uint8_t result);
+ void execute_jcc(bool result);
uint8_t p2_mask();
void expander_operation(expander_op operation, uint8_t port);
void check_irqs();