From 9e95f0257f419c3c7fefdadcad4478b66aaf63b7 Mon Sep 17 00:00:00 2001 From: iainp5 Date: Sat, 21 Sep 2024 19:32:30 +0100 Subject: Debug steps vm_goto --- rules.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'rules.js') diff --git a/rules.js b/rules.js index 53e7792..3afcf06 100644 --- a/rules.js +++ b/rules.js @@ -3640,7 +3640,8 @@ function vm_goto_step(step) { console.log('vm_goto_step called, target:', step) console.log('game.vm.ip', game.vp.ip) for (let i = game.vm.ip; i < CODE[game.vm.fp].length; i++) { - console.log('game.vm.ip', game.vm.ip) + console.log('i', i) + console.log('step', CODE[game.vm.fp][i][0]) if (CODE[game.vm.fp][i][0] === step) { game.vm.ip = i; vm_exec(); -- cgit v1.2.3