aboutsummaryrefslogtreecommitdiff
path: root/eval.go
diff options
context:
space:
mode:
Diffstat (limited to 'eval.go')
-rw-r--r--eval.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/eval.go b/eval.go
index 476f5d9..d4d6f90 100644
--- a/eval.go
+++ b/eval.go
@@ -113,7 +113,7 @@ func (j1 *J1) eval(ins Instruction) {
case 0xf000: // key
fmt.Fprintf(j1.console, "%c", n)
case 0xf002: // bye
- j1.rsp = 0
+ j1.Reset()
default:
j1.memory[j1.st0>>1] = n
}