aboutsummaryrefslogtreecommitdiff
path: root/eval.go
diff options
context:
space:
mode:
Diffstat (limited to 'eval.go')
-rw-r--r--eval.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/eval.go b/eval.go
index e0224d8..361bf35 100644
--- a/eval.go
+++ b/eval.go
@@ -21,10 +21,7 @@ type J1 struct {
// Reset VM
func (j1 *J1) Reset() {
- j1.pc = 0
- j1.st0 = 0
- j1.dsp = 0
- j1.rsp = 0
+ j1.pc, j1.st0, j1.dsp, j1.rsp = 0, 0, 0, 0
}
// LoadBytes into memory