summaryrefslogtreecommitdiff
path: root/opcodes.asm
diff options
context:
space:
mode:
Diffstat (limited to 'opcodes.asm')
-rw-r--r--opcodes.asm4
1 files changed, 3 insertions, 1 deletions
diff --git a/opcodes.asm b/opcodes.asm
index 329a825..f6171e9 100644
--- a/opcodes.asm
+++ b/opcodes.asm
@@ -738,9 +738,11 @@ emu_op_3e:
emu_op_3f:
;; CCF
;; Clear carry flag
+ ;; XXX fuck flags
bsr flags_normalize
;; SZ5H3PNC
- eor.b #%00010001,flag_byte-flag_storage(a3)
+ andi.b #%11111110,flag_byte-flag_storage(a3)
+ ori.b #%00000001,flag_valid-flag_storage(a3)
DONE ;nok
START