From c7f8ede9223502a96a74adf0cb790ac41de04742 Mon Sep 17 00:00:00 2001 From: sanine-a Date: Tue, 23 May 2023 12:43:07 -0500 Subject: correct indirection code to match spec --- src/vm/instruction.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/vm/instruction.js') 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), + ]; +} -- cgit v1.2.1