fix(octave): init_state pc=1 (1-indexed for Octave)

This commit is contained in:
allaun 2026-06-30 18:32:27 -05:00
parent 2433396369
commit 9f2b868920

View file

@ -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;