From 96e24f71f6b9424d4062e4374b34cbaf1acdf697 Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Sat, 24 Sep 2005 14:28:00 +0000 Subject: A few opcode corrections for C64 maniac svn-id: r18876 --- scumm/intern.h | 3 +-- scumm/script_c64.cpp | 19 +++++++------------ 2 files changed, 8 insertions(+), 14 deletions(-) (limited to 'scumm') diff --git a/scumm/intern.h b/scumm/intern.h index 2958daae15..158035d1cc 100644 --- a/scumm/intern.h +++ b/scumm/intern.h @@ -446,11 +446,10 @@ protected: void o_nop(); void o_getActorBitVar(); void o_setActorBitVar(); - void o_unknown1(); + void o_doSentence(); void o_unknown2(); void o_unknown3(); void o_getClosestObjActor(); - void o_askForDisk(); void o_printEgo_c64(); void o_print_c64(); void o_unlockRoom(); diff --git a/scumm/script_c64.cpp b/scumm/script_c64.cpp index 4b21035c7f..f990df981f 100644 --- a/scumm/script_c64.cpp +++ b/scumm/script_c64.cpp @@ -38,8 +38,8 @@ void ScummEngine_c64::setupOpcodes() { /* 00 */ OPCODE(o5_stopObjectCode), OPCODE(o2_putActor), - OPCODE(o_askForDisk), - OPCODE(o_unknown1), + OPCODE(o5_startMusic), + OPCODE(o_doSentence), /* 04 */ OPCODE(o_isGreaterEqual), OPCODE(o_stopCurrentScript), @@ -119,7 +119,7 @@ void ScummEngine_c64::setupOpcodes() { OPCODE(o2_cutscene), OPCODE(o2_putActor), OPCODE(o2_startScript), - OPCODE(o_unknown1), + OPCODE(o_doSentence), /* 44 */ OPCODE(o_isLess), OPCODE(o_stopCurrentScript), @@ -199,7 +199,7 @@ void ScummEngine_c64::setupOpcodes() { OPCODE(o_stopCurrentScript), OPCODE(o2_putActor), OPCODE(o_stopCurrentScript), - OPCODE(o_unknown1), + OPCODE(o_doSentence), /* 84 */ OPCODE(o_isGreaterEqual), OPCODE(o_stopCurrentScript), @@ -279,7 +279,7 @@ void ScummEngine_c64::setupOpcodes() { OPCODE(o2_endCutscene), OPCODE(o2_putActor), OPCODE(o2_startScript), - OPCODE(o_unknown1), + OPCODE(o_doSentence), /* C4 */ OPCODE(o_isLess), OPCODE(o_stopCurrentScript), @@ -662,11 +662,11 @@ void ScummEngine_c64::o_printEgo_c64() { decodeParseString(); } -void ScummEngine_c64::o_unknown1() { +void ScummEngine_c64::o_doSentence() { byte var1 = fetchScriptByte(); byte var2 = fetchScriptByte(); byte var3 = fetchScriptByte(); - warning("STUB: o_unknown1(%d, %d, %d)", var1, var2, var3); + warning("STUB: o_doSentence(%d, %d, %d)", var1, var2, var3); } void ScummEngine_c64::o_unknown2() { @@ -706,11 +706,6 @@ void ScummEngine_c64::o_getClosestObjActor() { setResult(closest_obj); } -void ScummEngine_c64::o_askForDisk() { - int disk = getVarOrDirectByte(PARAM_1); - debug(0, "o_askForDisk (%d)", disk); -} - void ScummEngine_c64::o_beginOverride() { const int idx = vm.cutSceneStackPointer; assert(0 <= idx && idx < 5); -- cgit v1.2.3