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
+14-1Lines changed: 14 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -34,6 +34,17 @@ enum Opcode
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
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. */
36
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. */
37
+
OP_ROUND, /*!< Rounds the number in the last register and stores the result in the last register. */
38
+
OP_ABS, /*!< Calculates the absolute value of the number in the last register and stores the result in the last register. */
39
+
OP_FLOOR, /*!< Calculates the floor of the number in the last register and stores the result in the last register. */
40
+
OP_CEIL, /*!< Calculates the ceiling of the number in the last register and stores the result in the last register. */
41
+
OP_SQRT, /*!< Calculates the square root of the number in the last register and stores the result in the last register. */
42
+
OP_SIN, /*!< Calculates the sine of the number in the last register and stores the result in the last register. */
43
+
OP_COS, /*!< Calculates the cosine of the number in the last register and stores the result in the last register. */
44
+
OP_TAN, /*!< Calculates the tangent of the number in the last register and stores the result in the last register. */
45
+
OP_ASIN, /*!< Calculates the arcsine of the number in the last register and stores the result in the last register. */
46
+
OP_ACOS, /*!< Calculates the arccosine of the number in the last register and stores the result in the last register. */
47
+
OP_ATAN, /*!< Calculates the arctangent of the number in the last register and stores the result in the last register. */
37
48
OP_GREATER_THAN, /*!< Compares (>) the values stored in the last 2 registers and stores the result in the last registry, deleting the input registers. */
38
49
OP_LESS_THAN, /*!< Compares (<) the values stored in the last 2 registers and stores the result in the last registry, deleting the input registers. */
39
50
OP_EQUALS, /*!< Compares (==) the values stored in the last 2 registers and stores the result in the last registry, deleting the input registers. */
@@ -99,7 +110,9 @@ class LIBSCRATCHCPP_EXPORT VirtualMachine
0 commit comments