diff options
Diffstat (limited to 'src/vm/core.js')
-rw-r--r-- | src/vm/core.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vm/core.js b/src/vm/core.js index 9b0fe77..4fdd0a0 100644 --- a/src/vm/core.js +++ b/src/vm/core.js @@ -37,13 +37,13 @@ class Core { case AddrMode.Indirect: { let loc = this.normalize(pc, address.value); let b = this.data[loc].b.value; - return this.normalize(loc, b); + return this.normalize(pc, b); } case AddrMode.Predecrement: { let loc = this.normalize(pc, address.value); this.data[loc].b.value -= 1; let b = this.data[loc].b.value; - return this.normalize(loc, b); + return this.normalize(pc, b); } default: throw `Invalid addressing mode "${address.mode}"`; |