aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--eval.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/eval.go b/eval.go
index ee83e4c..bd1891e 100644
--- a/eval.go
+++ b/eval.go
@@ -33,7 +33,7 @@ func (vm *J1) String() string {
rstack[i] = v << 1
}
return fmt.Sprintf("PC=%0.4X ST=%0.4X D=%0.4X R=%0.4X",
- vm.pc<<1, vm.st0, vm.dstack[:vm.dsp+1], rstack[:vm.rsp+1])
+ vm.pc<<1, vm.st0, vm.dstack[1:vm.dsp+1], rstack[1:vm.rsp+1])
}
// LoadBytes into memory