Implement arithmetic opcodes

This commit is contained in:
sanket1729 2021-08-25 20:48:20 +00:00
parent 6092d94c1d
commit 4b9032209a
5 changed files with 208 additions and 2 deletions

View file

@ -123,6 +123,10 @@ std::string ScriptErrorString(const ScriptError serror)
return "Introspection opcode used without correct evaluation context";
case SCRIPT_ERR_INTROSPECT_INDEX_OUT_OF_BOUNDS:
return "Introspection index out of bounds";
case SCRIPT_ERR_EXPECTED_8BYTES:
return "Arithmetic opcodes expect 8 bytes operands";
case SCRIPT_ERR_ARITHMETIC64:
return "Arithmetic opcode error";
case SCRIPT_ERR_UNKNOWN_ERROR:
case SCRIPT_ERR_ERROR_COUNT:
default: break;