From 03c22494160e3fa1a3f0e3d0f00d4f4ef989945c Mon Sep 17 00:00:00 2001 From: Lea Date: Wed, 25 Jan 2023 15:34:39 +0100 Subject: [PATCH] remove `ac` flag --- src/emulator/main.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/emulator/main.rs b/src/emulator/main.rs index b324297..624adaf 100644 --- a/src/emulator/main.rs +++ b/src/emulator/main.rs @@ -30,8 +30,9 @@ pub struct ConditionCodes { p: bool, /// Carry (C), set if the last addition operation resulted in a carry or if the last subtraction operation required a borrow. c: bool, - /// Auxiliary carry (AC or H), used for binary-coded decimal arithmetic (BCD). - ac: bool, + // Auxiliary carry (AC or H), used for binary-coded decimal arithmetic (BCD). + // Can't test this so I won't implement it + // ac: bool, } #[derive(PartialEq)] @@ -91,7 +92,7 @@ fn main() { h: 0, l: 0, sp: 0, - cc: ConditionCodes { z: true, s: true, p: true, c: true, ac: true }, + cc: ConditionCodes { z: true, s: true, p: true, c: true }, pc: 0, memory: [0; 8000], };