summaryrefslogtreecommitdiff
path: root/src/cpu
diff options
context:
space:
mode:
authoralekseiplusplus <alekseijeaves@protonmail.com>2023-08-17 11:40:39 +1000
committeralekseiplusplus <alekseijeaves@protonmail.com>2023-08-17 11:40:39 +1000
commitfbecaa6b0a998c870ae972b985cbdcfd0172b29c (patch)
treeed624f6134d8725cf6ab174d4e14f7daadeb9e3c /src/cpu
parentdc2e476c52a24ca910d2c1e60347fd5bce889169 (diff)
thanks Hugh for these fixes
Diffstat (limited to 'src/cpu')
-rw-r--r--src/cpu/6502.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cpu/6502.c b/src/cpu/6502.c
index 5aaffef..672ead3 100644
--- a/src/cpu/6502.c
+++ b/src/cpu/6502.c
@@ -29,7 +29,7 @@ void flagClear(byte flag){
// Functions which perform reusable routines for finding if a specific flag should be set.
void setFlagN(byte x){
- if (x & flag_N == flag_N)
+ if ((x & flag_N) == flag_N)
setFlag(flag_N, 1);
else
setFlag(flag_N, 0);