Add opcode
svn-id: r14695
This commit is contained in:
parent
48c0be7b5f
commit
dffbcceb91
2 changed files with 19 additions and 4 deletions
|
@ -622,6 +622,7 @@ protected:
|
||||||
byte stringLen(byte *);
|
byte stringLen(byte *);
|
||||||
|
|
||||||
/* Version 7 script opcodes */
|
/* Version 7 script opcodes */
|
||||||
|
void o7_getString();
|
||||||
void o7_objectX();
|
void o7_objectX();
|
||||||
void o7_objectY();
|
void o7_objectY();
|
||||||
void o7_stringLen();
|
void o7_stringLen();
|
||||||
|
|
|
@ -57,7 +57,7 @@ void ScummEngine_v7he::setupOpcodes() {
|
||||||
OPCODE(o6_pushByteVar),
|
OPCODE(o6_pushByteVar),
|
||||||
OPCODE(o6_pushWordVar),
|
OPCODE(o6_pushWordVar),
|
||||||
/* 04 */
|
/* 04 */
|
||||||
OPCODE(o6_invalid),
|
OPCODE(o7_getString),
|
||||||
OPCODE(o6_invalid),
|
OPCODE(o6_invalid),
|
||||||
OPCODE(o6_byteArrayRead),
|
OPCODE(o6_byteArrayRead),
|
||||||
OPCODE(o6_wordArrayRead),
|
OPCODE(o6_wordArrayRead),
|
||||||
|
@ -419,12 +419,26 @@ void ScummEngine_v7he::o7_objectY() {
|
||||||
push(_objs[objnum].y_pos);
|
push(_objs[objnum].y_pos);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void ScummEngine_v7he::o7_getString() {
|
||||||
|
int len;
|
||||||
|
|
||||||
|
len = resStrLen(_scriptPointer);
|
||||||
|
warning("stub o7_getString(\"%s\")", _scriptPointer);
|
||||||
|
_scriptPointer += len;
|
||||||
|
fetchScriptWord();
|
||||||
|
fetchScriptWord();
|
||||||
|
}
|
||||||
|
|
||||||
void ScummEngine_v7he::o7_unknownFA() {
|
void ScummEngine_v7he::o7_unknownFA() {
|
||||||
int len, a = fetchScriptByte();
|
int len, a = fetchScriptByte();
|
||||||
|
|
||||||
len = resStrLen(_scriptPointer);
|
if (_heversion <= 71) {
|
||||||
|
int len = resStrLen(_scriptPointer);
|
||||||
warning("stub o7_unknownFA(%d, \"%s\")", a, _scriptPointer);
|
warning("stub o7_unknownFA(%d, \"%s\")", a, _scriptPointer);
|
||||||
_scriptPointer += len + 1;
|
_scriptPointer += len + 1;
|
||||||
|
} else {
|
||||||
|
warning("stub o7_unknownFA(%d)", a);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void ScummEngine_v7he::o7_stringLen() {
|
void ScummEngine_v7he::o7_stringLen() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue