summaryrefslogtreecommitdiff
path: root/src/vm/instruction.js
diff options
context:
space:
mode:
authorsanine-a <sanine.not@pm.me>2023-05-23 12:43:07 -0500
committersanine-a <sanine.not@pm.me>2023-05-23 12:43:07 -0500
commitc7f8ede9223502a96a74adf0cb790ac41de04742 (patch)
treece4e142946bf78bec033d231afd0bdebb7af087c /src/vm/instruction.js
parent4d5377870ee554036ac9aab570ac2bc809fc88bd (diff)
correct indirection code to match spec
Diffstat (limited to 'src/vm/instruction.js')
-rw-r--r--src/vm/instruction.js8
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),
+ ];
+}