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;