From e7faa2e95bffa6f8422ef102b6943c93c95a12e9 Mon Sep 17 00:00:00 2001 From: Enorovan Date: Fri, 1 Nov 2024 11:57:42 +0100 Subject: [PATCH] cclcc/fix-se-ending-crash: stub 00 5C "FlagWait (TBD)" instruction --- src/vm/inst_controlflow.cpp | 8 ++++++++ src/vm/inst_controlflow.h | 1 + src/vm/opcodetables_cc.h | 2 +- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/vm/inst_controlflow.cpp b/src/vm/inst_controlflow.cpp index 8b4cc9f5..5405ac8f 100644 --- a/src/vm/inst_controlflow.cpp +++ b/src/vm/inst_controlflow.cpp @@ -288,6 +288,14 @@ VmInstruction(InstCase) { } } +VmInstruction(InstFlagWait) { + StartInstruction; + PopUint8(type); + PopExpression(arg1); + ImpLogSlow(LL_Warning, LC_VMStub, + "STUB instruction SomethingOff(type: %i, arg1: %i)\n", type, arg1); +} + } // namespace Vm } // namespace Impacto \ No newline at end of file diff --git a/src/vm/inst_controlflow.h b/src/vm/inst_controlflow.h index c50e4590..75a7e524 100644 --- a/src/vm/inst_controlflow.h +++ b/src/vm/inst_controlflow.h @@ -26,6 +26,7 @@ VmInstruction(InstPackFileAddBind); VmInstruction(InstLoadJump); VmInstruction(InstSwitch); VmInstruction(InstCase); +VmInstruction(InstFlagWait); } // namespace Vm diff --git a/src/vm/opcodetables_cc.h b/src/vm/opcodetables_cc.h index 135f6f3d..66ffda7e 100644 --- a/src/vm/opcodetables_cc.h +++ b/src/vm/opcodetables_cc.h @@ -107,7 +107,7 @@ InstructionProc static OpcodeTableSystem_CC[256] = { InstDummy, // 00 59 InstDummy, // 00 5A InstDummy, // 00 5B - InstDummy, // 00 5C + InstFlagWait, // 00 5C InstDummy, // 00 5D InstDummy, // 00 5E InstPackFileAddBind, // 00 5F