diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/cpu/6502.c | 2 |
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); |