aboutsummaryrefslogtreecommitdiff
path: root/kyra/script.h
diff options
context:
space:
mode:
authorJames Brown2004-11-11 13:37:35 +0000
committerJames Brown2004-11-11 13:37:35 +0000
commit1f7ccd02938a1e418bf83ed44014631187df7fcb (patch)
tree4520666f4533c081d991932bdb6cb81ae9f0fe7c /kyra/script.h
parente67ffaaff0c95a25580db000e4fc1cc9ae81940c (diff)
downloadscummvm-rg350-1f7ccd02938a1e418bf83ed44014631187df7fcb.tar.gz
scummvm-rg350-1f7ccd02938a1e418bf83ed44014631187df7fcb.tar.bz2
scummvm-rg350-1f7ccd02938a1e418bf83ed44014631187df7fcb.zip
Bring kyra up-to-date with patch 1051358
svn-id: r15786
Diffstat (limited to 'kyra/script.h')
-rw-r--r--kyra/script.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/kyra/script.h b/kyra/script.h
index ea04d87416..664850b62c 100644
--- a/kyra/script.h
+++ b/kyra/script.h
@@ -71,14 +71,15 @@ namespace Kyra {
uint32 _delay;
int32 _registers[32]; // registers of the interpreter
- int32 _stack[32]; // our stack
+ int32 _stack[64]; // our stack
// TODO: check for 'under'flow
- int32 popStack(void) { return _stack[_stackPos--]; }
+ int32 popStack(void) { return _stack[--_stackPos]; }
int32& topStack(void) { return _stack[_stackPos]; }
uint32 _returnValue;
+ int32 _nextScriptPos;
int32 _instructionPos;
int32 _stackPos;
int32 _tempPos;
@@ -131,7 +132,7 @@ namespace Kyra {
void c1_goToLine(void); // 0x00
void c1_setReturn(void); // 0x01
void c1_pushRetRec(void); // 0x02
- void c1_push(void); // 0x03 & 0x04
+ void c1_push(void); // 0x03 & 0x04
void c1_pushVar(void); // 0x05
void c1_pushFrameNeg(void); // 0x06
void c1_pushFramePos(void); // 0x07
@@ -148,7 +149,7 @@ namespace Kyra {
void c1_unknownCommand(void);
// the opcode procs
- void o1_0x68(void); // 0x68
+ void o1_0x68(void); // 0x68
void o1_unknownOpcode(void);
};
} // end of namespace Kyra