From aa1a461db71d3e2c668ae01f98060c969de8b268 Mon Sep 17 00:00:00 2001 From: Adrian Conlon Date: Mon, 20 Aug 2018 22:20:24 +0100 Subject: [PATCH] Whoops: missed a couple bad type conversions in the 6809 processor Signed-off-by: Adrian Conlon --- MC6809/inc/mc6809.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MC6809/inc/mc6809.h b/MC6809/inc/mc6809.h index d26fda9..197143a 100644 --- a/MC6809/inc/mc6809.h +++ b/MC6809/inc/mc6809.h @@ -152,7 +152,7 @@ namespace EightBit { void adjustAddition(uint16_t before, uint16_t data, uint32_t after) { const register16_t result = after & Mask16; - adjustNZ(result); + adjustNZ(result.word); adjustCarry(after); adjustOverflow(before, data, result.word); } @@ -166,7 +166,7 @@ namespace EightBit { void adjustSubtraction(uint16_t before, uint16_t data, uint32_t after) { const register16_t result = after & Mask16; - adjustNZ(result); + adjustNZ(result.word); adjustBorrow(after); adjustOverflow(before, data, result.word); }