Skip to content

Commit

Permalink
fix(gdbdiff): let → const
Browse files Browse the repository at this point in the history
  • Loading branch information
urish committed May 16, 2021
1 parent b783a0c commit 8ef2ee8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions debug/gdbdiff.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ function printComparedRegisters(
}

function printFlags(xpsr: number) {
let negative = xpsr & 0x80000000 ? 'N' : '-';
let zero = xpsr & 0x40000000 ? 'Z' : '-';
let carry = xpsr & 0x20000000 ? 'C' : '-';
let overflow = xpsr & 0x10000000 ? 'O' : '-';
const negative = xpsr & 0x80000000 ? 'N' : '-';
const zero = xpsr & 0x40000000 ? 'Z' : '-';
const carry = xpsr & 0x20000000 ? 'C' : '-';
const overflow = xpsr & 0x10000000 ? 'O' : '-';
return `[${negative}${zero}${carry}${overflow}]`;
}

Expand Down

0 comments on commit 8ef2ee8

Please sign in to comment.