Register opcode for string split

This commit is contained in:
Vasilii Rogin 2023-05-15 00:28:41 +03:00
parent 9373719953
commit f90542f040
1 changed files with 14 additions and 0 deletions

View File

@ -563,6 +563,19 @@ static void opFixArray(Program* program)
FixArray(array_id);
}
// string_split
static void opStringSplit(Program* program)
{
auto split = programStackPopString(program);
auto str = programStackPopString(program);
// TODO
auto returnValue = 0;
programStackPushInteger(program, returnValue);
}
// set_array
static void opSetArray(Program* program)
{
@ -806,6 +819,7 @@ void sfallOpcodesInit()
interpreterRegisterOpcode(0x8232, opResizeArray);
interpreterRegisterOpcode(0x8233, opTempArray);
interpreterRegisterOpcode(0x8234, opFixArray);
interpreterRegisterOpcode(0x8235, opStringSplit);
interpreterRegisterOpcode(0x8237, opParseInt);
interpreterRegisterOpcode(0x8238, op_atof);
interpreterRegisterOpcode(0x8239, opScanArray);