diff options
| author | Duncan Smith | 2010-09-13 22:26:37 -0700 |
|---|---|---|
| committer | Duncan Smith | 2010-09-13 22:26:37 -0700 |
| commit | 04ea312f6558eae2c43066eb7b57260a7fd49b28 (patch) | |
| tree | 0247b0788583799da2647021b7aad83714ab350c /opcodes.asm | |
| parent | 9b2d156b85a3c3eadbc8c4ab4726fcb6ec44e5d0 (diff) | |
CCF flags :(
Diffstat (limited to 'opcodes.asm')
| -rw-r--r-- | opcodes.asm | 4 |
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 |
