diff options
Diffstat (limited to 'engines/kyra/script.h')
-rw-r--r-- | engines/kyra/script.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/engines/kyra/script.h b/engines/kyra/script.h index ae9ece8154..7d6c9d5243 100644 --- a/engines/kyra/script.h +++ b/engines/kyra/script.h @@ -47,13 +47,18 @@ struct EMCData { }; struct EMCState { + enum { + kStackSize = 100, + kStackLastEntry = kStackSize - 1 + }; + const uint16 *ip; const EMCData *dataPtr; int16 retValue; uint16 bp; uint16 sp; - int16 regs[30]; // VM registers - int16 stack[100]; // VM stack + int16 regs[30]; // VM registers + int16 stack[kStackSize]; // VM stack }; #define stackPos(x) (script->stack[script->sp+x]) |