feat: implement cpu interrupts

This commit is contained in:
2021-03-18 21:06:01 -05:00
parent fb38ef3f68
commit 558f9e7c72
5 changed files with 86 additions and 98 deletions

View File

@@ -1017,7 +1017,7 @@ impl Instruction {
Cycles::new(4)
}
Instruction::CALL(cond, nn) => {
// CALL cc[y], nn | Store nn on the stack, then store nn in the program counter if cond is met
// CALL cc[y], nn | Store pc on the stack, then store nn in the program counter if cond is met
// CALL nn | Store nn on the stack, then store nn in the program counter
let flags: &Flags = cpu.flags();
let pc = cpu.register_pair(RegisterPair::PC);