From cc5a693713ce22225e95e9ea70d1993bc58cd21e Mon Sep 17 00:00:00 2001 From: hap Date: Sun, 11 Oct 2020 20:05:10 +0200 Subject: mcs48: execute_jcc param is a bool, not u8 --- src/devices/cpu/mcs48/mcs48.cpp | 4 ++-- src/devices/cpu/mcs48/mcs48.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/devices/cpu') 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(); -- cgit v1.2.3