aboutsummaryrefslogtreecommitdiff
path: root/eval.go
diff options
context:
space:
mode:
Diffstat (limited to 'eval.go')
-rw-r--r--eval.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/eval.go b/eval.go
index d04ea01..2af8fd3 100644
--- a/eval.go
+++ b/eval.go
@@ -99,8 +99,8 @@ func (vm *J1) eval(ins Instruction) {
if v.NtoAtT {
vm.memory[vm.st0] = vm.dstack[vm.dsp]
}
- dsp = uint16(int8(vm.dsp)+v.Ddir) % 32
- rsp = uint16(int8(vm.rsp)+v.Rdir) % 32
+ dsp = uint16(int8(vm.dsp) + v.Ddir)
+ rsp = uint16(int8(vm.rsp) + v.Rdir)
if v.TtoR {
vm.rstack[rsp] = vm.st0
}