Skip to content

Commit

Permalink
Merge pull request #85 from CommitteeOfZero/cclcc/fix-se-ending-crash
Browse files Browse the repository at this point in the history
cclcc/fix-se-ending-crash: stub 00 5C "FlagWait (TBD)" instruction
  • Loading branch information
Enorovan authored Nov 1, 2024
2 parents 1ffe37d + e7faa2e commit 1b896a5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
8 changes: 8 additions & 0 deletions src/vm/inst_controlflow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions src/vm/inst_controlflow.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ VmInstruction(InstPackFileAddBind);
VmInstruction(InstLoadJump);
VmInstruction(InstSwitch);
VmInstruction(InstCase);
VmInstruction(InstFlagWait);

} // namespace Vm

Expand Down
2 changes: 1 addition & 1 deletion src/vm/opcodetables_cc.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1b896a5

Please sign in to comment.