You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/engine/virtualmachine.h
+18-12Lines changed: 18 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -59,17 +59,20 @@ enum Opcode
59
59
OP_LIST_DEL, /*!< Deletes the index (or item like "last" or "random") stored in the last register of the list with the index in the argument. */
60
60
OP_LIST_DEL_ALL, /*!< Clears the list with the index in the argument. */
61
61
OP_LIST_INSERT, /*!< Inserts the value from the second last register at the index (or item like "last" or "random") stored in the last register to the list with the index in the argument. */
62
-
OP_LIST_REPLACE, /*!< Replaces the index (or item like "last" or "random") stored in the second last register with the value from the last register in the list with the index in the argument. */
63
-
OP_LIST_GET_ITEM, /*!< Stores the value at the index (or item like "last" or "random") (of the list with the index in the argument) stored in the last register, in the last register. */
64
-
OP_LIST_INDEX_OF, /*!< Stores the index of the value from the last register in the last register (of the list with the index in the argument). */
65
-
OP_LIST_LENGTH, /*!< Stores the length of the list with the index in the argument, in the last register. */
66
-
OP_LIST_CONTAINS, /*!< Stores true in the last register if the list with the index in the argument contains the value from the last register. */
67
-
OP_STR_CONCAT, /*!< Concatenates the strings stored in the last 2 registers and stores the result in the last register, deleting the input registers. */
68
-
OP_STR_AT, /*! Stores the character at index in the last register of the string in the second last register, in the last register. */
69
-
OP_STR_LENGTH, /*! Stores the length of the string in the last register, in the last register. */
70
-
OP_STR_CONTAINS, /*! Stores true in the last register if the string stored in the second last register contains the substring in the last register. */
71
-
OP_EXEC, /*!< Calls the function with the index in the argument. */
72
-
OP_CALL_PROCEDURE /*! Calls the procedure (custom block) with the index in the argument. */
62
+
OP_LIST_REPLACE, /*!< Replaces the index (or item like "last" or "random") stored in the second last register with the value from the last register in the list with the index in the argument. */
63
+
OP_LIST_GET_ITEM, /*!< Stores the value at the index (or item like "last" or "random") (of the list with the index in the argument) stored in the last register, in the last register. */
64
+
OP_LIST_INDEX_OF, /*!< Stores the index of the value from the last register in the last register (of the list with the index in the argument). */
65
+
OP_LIST_LENGTH, /*!< Stores the length of the list with the index in the argument, in the last register. */
66
+
OP_LIST_CONTAINS, /*!< Stores true in the last register if the list with the index in the argument contains the value from the last register. */
67
+
OP_STR_CONCAT, /*!< Concatenates the strings stored in the last 2 registers and stores the result in the last register, deleting the input registers. */
68
+
OP_STR_AT, /*! Stores the character at index in the last register of the string in the second last register, in the last register. */
69
+
OP_STR_LENGTH, /*! Stores the length of the string in the last register, in the last register. */
70
+
OP_STR_CONTAINS, /*! Stores true in the last register if the string stored in the second last register contains the substring in the last register. */
71
+
OP_EXEC, /*!< Calls the function with the index in the argument. */
72
+
OP_INIT_PROCEDURE, /*!< Initializes the list of procedure (custom block) arguments. */
73
+
OP_CALL_PROCEDURE, /*! Calls the procedure (custom block) with the index in the argument. */
74
+
OP_ADD_ARG, /*!< Adds a procedure (custom block) argument with the value from the last register. */
75
+
OP_READ_ARG /*!< Reads the procedure (custom block) argument with the index in the argument and stores the value in the last register. */
73
76
};
74
77
75
78
}
@@ -113,7 +116,7 @@ class LIBSCRATCHCPP_EXPORT VirtualMachine
0 commit comments