diff options
author | sanine-a <sanine.not@pm.me> | 2023-05-23 12:43:07 -0500 |
---|---|---|
committer | sanine-a <sanine.not@pm.me> | 2023-05-23 12:43:07 -0500 |
commit | c7f8ede9223502a96a74adf0cb790ac41de04742 (patch) | |
tree | ce4e142946bf78bec033d231afd0bdebb7af087c /src/vm/instruction.js | |
parent | 4d5377870ee554036ac9aab570ac2bc809fc88bd (diff) |
correct indirection code to match spec
Diffstat (limited to 'src/vm/instruction.js')
-rw-r--r-- | src/vm/instruction.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/vm/instruction.js b/src/vm/instruction.js index c235b9a..dcf9a51 100644 --- a/src/vm/instruction.js +++ b/src/vm/instruction.js @@ -162,3 +162,11 @@ exports.DJN = function(core, pc, ins) { return [core.normalize(pc, 1)]; } } + + +exports.SPL = function(core, pc, ins) { + return [ + core.normalize(pc, 1), + core.getLocation(pc, ins.a), + ]; +} |