From 294df2414d41add638c268fc05d713a6d572dc1d Mon Sep 17 00:00:00 2001 From: bwmott Date: Mon, 4 Sep 2006 00:11:38 +0000 Subject: [PATCH] The 6507's B flag appears to be tied to high so there's no way to clear the flag. This has been verified using a real 2600 by writing a program which clears the B flag and then displaying the contents of the status register. git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1124 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba --- stella/src/emucore/m6502/src/M6502.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stella/src/emucore/m6502/src/M6502.cxx b/stella/src/emucore/m6502/src/M6502.cxx index 25f3f5094..7622f93b1 100644 --- a/stella/src/emucore/m6502/src/M6502.cxx +++ b/stella/src/emucore/m6502/src/M6502.cxx @@ -13,7 +13,7 @@ // See the file "license" for information on usage and redistribution of // this file, and for a DISCLAIMER OF ALL WARRANTIES. // -// $Id: M6502.cxx,v 1.17 2006-08-31 02:31:29 bwmott Exp $ +// $Id: M6502.cxx,v 1.18 2006-09-04 00:11:38 bwmott Exp $ //============================================================================ #include "M6502.hxx" @@ -139,7 +139,7 @@ void M6502::PS(uInt8 ps) { N = ps & 0x80; V = ps & 0x40; - B = ps & 0x10; + B = true; // B = ps & 0x10; The 6507's B flag always true D = ps & 0x08; I = ps & 0x04; notZ = !(ps & 0x02);