mirror of
https://github.com/allaunthefox/SilverSight.git
synced 2026-08-20 14:37:29 +00:00
fix(octave): init_state pc=1 (1-indexed for Octave)
This commit is contained in:
parent
2433396369
commit
9f2b868920
1 changed files with 1 additions and 1 deletions
|
|
@ -62,7 +62,7 @@ classdef AVM
|
||||||
|
|
||||||
function s = init_state(n_locals)
|
function s = init_state(n_locals)
|
||||||
if nargin < 1; n_locals = 0; end
|
if nargin < 1; n_locals = 0; end
|
||||||
s.pc = int32(0);
|
s.pc = int32(1); % 1-indexed for Octave
|
||||||
s.stack = {};
|
s.stack = {};
|
||||||
s.locals = cell(n_locals, 1);
|
s.locals = cell(n_locals, 1);
|
||||||
s.halted = false;
|
s.halted = false;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue