From 31cf242e9c972f0501e3700668c7dd0e461b212a Mon Sep 17 00:00:00 2001 From: mryouse Date: Tue, 6 Jun 2023 21:55:55 -0400 Subject: add debug statements --- vm.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vm.d b/vm.d index db2d4a0..cb5dc49 100644 --- a/vm.d +++ b/vm.d @@ -66,7 +66,7 @@ class VM { Value peekA(int offset) { if (offset >= this.aTop) { - writefln("offset of %d greater than stack size %d", offset, this.aTop); + writefln("peekA() offset of %d greater than stack size %d", offset, this.aTop); } return this.aStack[this.aTop - offset - 1]; } @@ -91,7 +91,7 @@ class VM { Value peekB(int offset) { if (offset >= this.bTop) { - writefln("offset of %d greater than stack size %d", offset, this.bTop); + writefln("peekB() offset of %d greater than stack size %d", offset, this.bTop); } return this.bStack[this.bTop - offset]; //return this.bStack[this.bTop - offset - 1]; -- cgit v1.2.3