Skip to content

Commit

Permalink
[#5] Use the new flag-computing function for STC.
Browse files Browse the repository at this point in the history
  • Loading branch information
kosarev committed Nov 1, 2020
1 parent c6f9aed commit b7162a4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion z80.h
Original file line number Diff line number Diff line change
Expand Up @@ -2629,7 +2629,8 @@ class i8080_executor : public internals::executor_base<B> {
self().on_set_a(a);
self().on_set_f(f); }
void on_scf() {
self().on_set_f(self().on_get_f() | base::cf_mask); }
fast_u8 f = self().on_get_f();
self().on_set_f(flags(f, flag_set::f4, 0, cf_mask)); }

protected:
using base::self;
Expand Down

0 comments on commit b7162a4

Please sign in to comment.