rp2040js 1.3.0 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -572,7 +572,7 @@ class CortexM0Core {
572
572
  const Rm = (opcode >> 3) & 0xf;
573
573
  const Rdn = ((opcode & 0x80) >> 4) | (opcode & 0x7);
574
574
  const leftValue = Rdn === pcRegister ? this.PC + 2 : this.registers[Rdn];
575
- const rightValue = this.registers[Rm];
575
+ const rightValue = Rm === pcRegister ? this.PC + 2 : this.registers[Rm];
576
576
  const result = leftValue + rightValue;
577
577
  if (Rdn !== spRegister && Rdn !== pcRegister) {
578
578
  this.registers[Rdn] = result;
@@ -569,7 +569,7 @@ export class CortexM0Core {
569
569
  const Rm = (opcode >> 3) & 0xf;
570
570
  const Rdn = ((opcode & 0x80) >> 4) | (opcode & 0x7);
571
571
  const leftValue = Rdn === pcRegister ? this.PC + 2 : this.registers[Rdn];
572
- const rightValue = this.registers[Rm];
572
+ const rightValue = Rm === pcRegister ? this.PC + 2 : this.registers[Rm];
573
573
  const result = leftValue + rightValue;
574
574
  if (Rdn !== spRegister && Rdn !== pcRegister) {
575
575
  this.registers[Rdn] = result;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rp2040js",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "description": "Raspberry Pi Pico (RP2040) Emulator",
5
5
  "repository": {
6
6
  "type": "git",