remove ac flag

This commit is contained in:
Lea 2023-01-25 15:34:39 +01:00
parent 06447c917a
commit 03c2249416
Signed by: Lea
GPG key ID: 1BAFFE8347019C42

View file

@ -30,8 +30,9 @@ pub struct ConditionCodes {
p: bool, p: bool,
/// Carry (C), set if the last addition operation resulted in a carry or if the last subtraction operation required a borrow. /// Carry (C), set if the last addition operation resulted in a carry or if the last subtraction operation required a borrow.
c: bool, c: bool,
/// Auxiliary carry (AC or H), used for binary-coded decimal arithmetic (BCD). // Auxiliary carry (AC or H), used for binary-coded decimal arithmetic (BCD).
ac: bool, // Can't test this so I won't implement it
// ac: bool,
} }
#[derive(PartialEq)] #[derive(PartialEq)]
@ -91,7 +92,7 @@ fn main() {
h: 0, h: 0,
l: 0, l: 0,
sp: 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, pc: 0,
memory: [0; 8000], memory: [0; 8000],
}; };