From db64810767dccfdc191836e881bd309f10c251fe Mon Sep 17 00:00:00 2001 From: Sam M W Date: Sun, 29 Oct 2023 14:07:09 +0000 Subject: [PATCH] get test passing --- src/cpu.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cpu.rs b/src/cpu.rs index 5cc100d..06dc658 100644 --- a/src/cpu.rs +++ b/src/cpu.rs @@ -427,7 +427,7 @@ impl CPU { } (Instruction::PHP, OpInput::UseImplied) => { // Push status - let val = self.registers.status.bits(); + let val = self.registers.status.bits() | 0x30; self.push_on_stack(val); } (Instruction::PLA, OpInput::UseImplied) => {