Skip to content

Commit

Permalink
[#201] z80-cpu: removed unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
vbmacher committed May 1, 2022
1 parent ffa6239 commit eae2838
Showing 1 changed file with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -411,16 +411,6 @@ private void bigOverflow(int i, int j, int result) {
}
}

private void halfBorrow(int a, int b) {
int carryIns = ((a + b) & 0xFF) ^ a ^ b;
int halfCarryOut = (carryIns >> 4) & 1;
if (halfCarryOut != 0) {
flags |= FLAG_H;
} else {
flags &= (~FLAG_H);
}
}

private void halfCarry11(int before, int sumWith) {
int mask = sumWith & before;
int xormask = sumWith ^ before;
Expand Down

0 comments on commit eae2838

Please sign in to comment.