From 9f2b868920a567db0d262af54e0c750e38c26e7c Mon Sep 17 00:00:00 2001 From: allaun Date: Tue, 30 Jun 2026 18:32:27 -0500 Subject: [PATCH] fix(octave): init_state pc=1 (1-indexed for Octave) --- octave/AVM.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/octave/AVM.m b/octave/AVM.m index a5df1df7..db827297 100644 --- a/octave/AVM.m +++ b/octave/AVM.m @@ -62,7 +62,7 @@ classdef AVM function s = init_state(n_locals) if nargin < 1; n_locals = 0; end - s.pc = int32(0); + s.pc = int32(1); % 1-indexed for Octave s.stack = {}; s.locals = cell(n_locals, 1); s.halted = false;