1
0
This commit is contained in:
otya128
2017-07-23 19:13:43 +09:00
parent c235687096
commit 3eae20517a
3 changed files with 17 additions and 1 deletions

View File

@@ -1330,7 +1330,8 @@ class PetitComputer
for(int i = 0; !quit && maincntRender == oldmaincnt && !waitFlag && running; i++)
{
version (traceVM)
std.stdio.stderr.writefln("%04X:%s", vm.pc, vm.getCurrent.toString(vm));
if (vm.pc < vm.currentSlot.code.length)
std.stdio.stderr.writefln("%04X:%s", vm.pc, vm.getCurrent.toString(vm));
version (dumpStackVM)
vm.dumpStack();
auto b = vm.runStep();