summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CPU.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/CPU.c b/CPU.c
index 4e7dfa1..b17b8db 100644
--- a/CPU.c
+++ b/CPU.c
@@ -168,7 +168,7 @@ void enable_flag(struct CPU *cpu, uint8_t flag){
}
void disable_flag(struct CPU *cpu, uint8_t flag){
- cpu->status &= !flag;
+ cpu->status &= ~flag;
}
int test_flag(struct CPU *cpu, uint8_t flag){