forked from Lea/invadeez
remove ac
flag
This commit is contained in:
parent
06447c917a
commit
03c2249416
|
@ -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],
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue