Add opcode

svn-id: r15115
This commit is contained in:
Travis Howell 2004-09-14 12:05:00 +00:00
parent c97d529787
commit 8c5381295d
4 changed files with 16 additions and 7 deletions

View File

@ -796,6 +796,7 @@ protected:
/* HE version 80 script opcodes */
void o80_unknown45();
void o80_unknown49();
void o80_unknown4A();
void o80_readConfigFile();
void o80_writeConfigFile();
void o80_cursorCommand();

View File

@ -1156,11 +1156,10 @@ void ScummEngine_v6he::o6_soundOps() {
void ScummEngine_v6he::o6_localizeArray() {
int slot = pop();
if (slot < _numArray) {
_arraySlot[slot] = vm.slot[_currentScript].number;
} else {
warning("o6_localizeArray(%d): array slot out of range", slot);
}
if (slot >= _numArray)
error("o6_localizeArray(%d): array slot out of range", slot);
_arraySlot[slot] = vm.slot[_currentScript].number;
}
void ScummEngine_v6he::o6_seekFilePos() {

View File

@ -137,7 +137,7 @@ void ScummEngine_v80he::setupOpcodes() {
/* 48 */
OPCODE(o6_invalid),
OPCODE(o80_unknown49),
OPCODE(o6_invalid),
OPCODE(o80_unknown4A),
OPCODE(o72_wordArrayIndexedWrite),
/* 4C */
OPCODE(o6_invalid),
@ -422,6 +422,15 @@ void ScummEngine_v80he::o80_unknown49() {
debug(1,"o80_unknown49 stub (%d, %d)", subOp, snd);
}
void ScummEngine_v80he::o80_unknown4A() {
int slot = pop();
if (slot >= _numArray)
error("o80_unknown4A(%d): array slot out of range", slot);
_arraySlot[slot] = -1;
}
void ScummEngine_v80he::o80_readConfigFile() {
byte name[128], section[128], filename[256];
int type, retval;

View File

@ -137,7 +137,7 @@ void ScummEngine_v90he::setupOpcodes() {
/* 48 */
OPCODE(o6_invalid),
OPCODE(o80_unknown49),
OPCODE(o6_invalid),
OPCODE(o80_unknown4A),
OPCODE(o72_wordArrayIndexedWrite),
/* 4C */
OPCODE(o6_invalid),