From 145de40872b0a403b0c978b5027bdb32948ddb1d Mon Sep 17 00:00:00 2001 From: Rob McMullen Date: Mon, 18 Dec 2017 10:37:23 -0800 Subject: [PATCH] Fixed PLP to always clear B flag * line #103: C826 D0 09 BNE --- 6502.c | 1 + 1 file changed, 1 insertion(+) diff --git a/6502.c b/6502.c index 11282f5..10b3cc6 100644 --- a/6502.c +++ b/6502.c @@ -345,6 +345,7 @@ static void inst_PLP() { SR.byte = stack_pull(); SR.bits.unused = 1; + SR.bits.brk = 0; } static void inst_ROL()