Skip to content

Commit

Permalink
fix(rp2040): misplaced comment
Browse files Browse the repository at this point in the history
  • Loading branch information
urish committed May 8, 2021
1 parent 8f1d1df commit b09edb8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/rp2040.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1013,8 +1013,9 @@ export class RP2040 {
this.V =
(leftValue > 0 && rightValue < 0 && result < 0) ||
(leftValue < 0 && rightValue > 0 && result > 0);
// CMP (register) encoding T2
} else if (opcode >> 8 === 0b01000101) {
}
// CMP (register) encoding T2
else if (opcode >> 8 === 0b01000101) {
const Rm = (opcode >> 3) & 0xf;
const Rn = ((opcode >> 4) & 0x8) | (opcode & 0x7);
const leftValue = this.registers[Rn] | 0;
Expand Down

0 comments on commit b09edb8

Please sign in to comment.