Skip to content

Commit c0050ae

Browse files
committed
Fix instruction SCF
1 parent 3ac2bd4 commit c0050ae

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/emit.dasc

+2
Original file line numberDiff line numberDiff line change
@@ -1161,6 +1161,8 @@ static bool inst_scf(dasm_State **Dst, gbz80_inst *inst, uint64_t *cycles)
11611161
| print "SCF"
11621162
| mov byte state->f_subtract, 0
11631163
| stc
1164+
/* clean H flag */
1165+
| clean_flag 0x10
11641166
*cycles += inst->cycles;
11651167
return true;
11661168
}

0 commit comments

Comments
 (0)