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
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -32,6 +32,7 @@ enum Opcode
32
32
OP_SUBTRACT, /*!< Subtracts the values stored in the last 2 registers and stores the result in the last registry, deleting the input registers. */
33
33
OP_MULTIPLY, /*!< Multiplies the values stored in the last 2 registers and stores the result in the last registry, deleting the input registers. */
34
34
OP_DIVIDE, /*!< Divides the values stored in the last 2 registers and stores the result in the last registry, deleting the input registers. */
35
+
OP_MOD, /*!< Calculates module of the values stored in the last 2 registers and stores the result in the last registry, deleting the input registers. */
35
36
OP_RANDOM, /*!< Generates a random value in the range stored in the last 2 registers and stores the result in the last registry, deleting the input registers. */
36
37
OP_GREATER_THAN, /*!< Compares (>) the values stored in the last 2 registers and stores the result in the last registry, deleting the input registers. */
37
38
OP_LESS_THAN, /*!< Compares (<) the values stored in the last 2 registers and stores the result in the last registry, deleting the input registers. */
@@ -94,7 +95,7 @@ class LIBSCRATCHCPP_EXPORT VirtualMachine
0 commit comments