Skip to content

Commit

Permalink
[#6] A minor refinement.
Browse files Browse the repository at this point in the history
  • Loading branch information
kosarev committed Jun 20, 2021
1 parent 37490bd commit b2961df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion z80.h
Original file line number Diff line number Diff line change
Expand Up @@ -2440,7 +2440,7 @@ class i8080_executor : public internals::executor_base<B> {
fast_u8 ops12 = b;
return sf(res) | zf(res) | pf(res) | hfb(ops12); }
case flag_op::set_cf:
return static_cast<fast_u8>((b & ~cf_mask) | ((w >> 8) & cf_mask));
return (b & ~cf_mask) | cfa(w);
case flag_op::daa: {
fast_u8 t = b;
fast_u8 hf = static_cast<fast_u8>(w & hf_mask);
Expand Down

0 comments on commit b2961df

Please sign in to comment.