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/Neo.VM/OpCode.cs
+24-20Lines changed: 24 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -1459,7 +1459,7 @@ public enum OpCode : byte
1459
1459
XOR=0x93,
1460
1460
1461
1461
/// <summary>
1462
-
/// Returns 1 if the inputs are exactly equal, 0 otherwise.
1462
+
/// Returns true if the inputs are exactly equal, false otherwise.
1463
1463
///
1464
1464
/// <example> a.Equals(b) </example>
1465
1465
///
@@ -1679,7 +1679,7 @@ public enum OpCode : byte
1679
1679
SHR=0xA9,
1680
1680
1681
1681
/// <summary>
1682
-
/// If the input is 0 or 1, it is flipped. Otherwise, the output will be 0.
1682
+
/// If the input is false, null or zero, the output is true, false otherwise.
1683
1683
///
1684
1684
/// <example> !a </example>
1685
1685
///
@@ -1691,7 +1691,7 @@ public enum OpCode : byte
1691
1691
NOT=0xAA,
1692
1692
1693
1693
/// <summary>
1694
-
/// If both a and b are not 0, the output is 1. Otherwise, 0.
1694
+
/// If both a and b are not zero(or null, false), the output is true, false otherwise.
1695
1695
///
1696
1696
/// <example> b && a </example>
1697
1697
///
@@ -1703,7 +1703,7 @@ public enum OpCode : byte
1703
1703
BOOLAND=0xAB,
1704
1704
1705
1705
/// <summary>
1706
-
/// If a or b is not 0, the output is 1. Otherwise, 0.
1706
+
/// If a or b is not zero(or null, false), the output is true, false otherwise.
1707
1707
///
1708
1708
/// <example> b || a </example>
1709
1709
///
@@ -1715,7 +1715,7 @@ public enum OpCode : byte
1715
1715
BOOLOR=0xAC,
1716
1716
1717
1717
/// <summary>
1718
-
/// Returns 0 if the input is 0. 1 otherwise.
1718
+
/// Returns true if the input is 0, false otherwise.
1719
1719
///
1720
1720
/// <example> a != 0 </example>
1721
1721
///
@@ -1727,7 +1727,7 @@ public enum OpCode : byte
1727
1727
NZ=0xB1,
1728
1728
1729
1729
/// <summary>
1730
-
/// Returns 1 if the numbers are equal, 0 otherwise.
1730
+
/// Returns true if the items are equal, false otherwise.
1731
1731
///
1732
1732
/// <example> b == a </example>
1733
1733
///
@@ -1739,7 +1739,7 @@ public enum OpCode : byte
1739
1739
NUMEQUAL=0xB3,
1740
1740
1741
1741
/// <summary>
1742
-
/// Returns 1 if the numbers are not equal, 0 otherwise.
1742
+
/// Returns true if the items are not equal, false otherwise.
1743
1743
///
1744
1744
/// <example> b != a </example>
1745
1745
///
@@ -1751,7 +1751,7 @@ public enum OpCode : byte
1751
1751
NUMNOTEQUAL=0xB4,
1752
1752
1753
1753
/// <summary>
1754
-
/// Returns 1 if a is less than b, 0 otherwise.
1754
+
/// Returns true if a is less than b, false otherwise.
1755
1755
///
1756
1756
/// <example> b>a </example>
1757
1757
///
@@ -1763,7 +1763,7 @@ public enum OpCode : byte
1763
1763
LT=0xB5,
1764
1764
1765
1765
/// <summary>
1766
-
/// Returns 1 if a is less than or equal to b, 0 otherwise.
1766
+
/// Returns true if a is less than or equal to b, otherwise false.
1767
1767
///
1768
1768
/// <example> b>=a </example>
1769
1769
///
@@ -1775,7 +1775,7 @@ public enum OpCode : byte
1775
1775
LE=0xB6,
1776
1776
1777
1777
/// <summary>
1778
-
/// Returns 1 if a is greater than b, 0 otherwise.
1778
+
/// Returns true if a is greater than b, otherwise false.
1779
1779
///
1780
1780
/// <remarks>
1781
1781
/// Push: 1 item(s)
@@ -1785,7 +1785,7 @@ public enum OpCode : byte
1785
1785
GT=0xB7,
1786
1786
1787
1787
/// <summary>
1788
-
/// Returns 1 if a is greater than or equal to b, 0 otherwise.
1788
+
/// Returns true if a is greater than or equal to b, otherwise false.
1789
1789
///
1790
1790
/// <remarks>
1791
1791
/// Push: 1 item(s)
@@ -1815,7 +1815,7 @@ public enum OpCode : byte
1815
1815
MAX=0xBA,
1816
1816
1817
1817
/// <summary>
1818
-
/// Returns 1 if x is within the specified range (left-inclusive), 0 otherwise.
1818
+
/// Returns true if x is within the specified range (left-inclusive), otherwise false.
1819
1819
///
1820
1820
/// <remarks>
1821
1821
/// Push: 1 item(s)
@@ -1889,7 +1889,8 @@ public enum OpCode : byte
1889
1889
NEWARRAY=0xC3,
1890
1890
1891
1891
/// <summary>
1892
-
/// A value n is taken from top of main stack. An array of type T with size n is put on top of the main stack.
1892
+
/// A value n is taken from top of main stack.
1893
+
/// An default-value-filled(null, false, 0, or empty string) array of type T with size n is put on top of the main stack.
1893
1894
///
1894
1895
/// <remarks>
1895
1896
/// Push: 1 item(s)
@@ -1910,7 +1911,7 @@ public enum OpCode : byte
1910
1911
NEWSTRUCT0=0xC5,
1911
1912
1912
1913
/// <summary>
1913
-
/// A value n is taken from top of main stack. A zero-filled struct with size n is put on top of the main stack.
1914
+
/// A value n is taken from top of main stack. A null-filled struct with size n is put on top of the main stack.
1914
1915
///
1915
1916
/// <remarks>
1916
1917
/// Push: 1 item(s)
@@ -1940,7 +1941,8 @@ public enum OpCode : byte
1940
1941
SIZE=0xCA,
1941
1942
1942
1943
/// <summary>
1943
-
/// An input index n (or key) and an array (or map) are removed from the top of the main stack. Puts True on top of main stack if array[n] (or map[n]) exist, and False otherwise.
1944
+
/// An input index n (or key) and an array (or buffer, string, map) are removed from the top of the main stack.
1945
+
/// Puts true on top of main stack if array[n] (or buffer[n], string[n], map[n]) exists, and false otherwise.
1944
1946
///
1945
1947
/// <remarks>
1946
1948
/// Push: 1 item(s)
@@ -1960,7 +1962,7 @@ public enum OpCode : byte
1960
1962
KEYS=0xCC,
1961
1963
1962
1964
/// <summary>
1963
-
/// A map is taken from top of the main stack. The values of this map are put on top of the main stack.
1965
+
/// An array or map is taken from top of the main stack. The values of this array or map are put on top of the main stack.
1964
1966
///
1965
1967
/// <remarks>
1966
1968
/// Push: 1 item(s)
@@ -1970,7 +1972,8 @@ public enum OpCode : byte
1970
1972
VALUES=0xCD,
1971
1973
1972
1974
/// <summary>
1973
-
/// An input index n (or key) and an array (or map) are taken from main stack. Element array[n] (or map[n]) is put on top of the main stack.
1975
+
/// An input index n (or key) and an array (or primitive type, buffer, map) are taken from main stack.
1976
+
/// Element array[n] (or the converted bytes[n] of primitive type, buffer[n], map[n]) is put on top of the main stack.
1974
1977
///
1975
1978
/// <remarks>
1976
1979
/// Push: 1 item(s)
@@ -1993,7 +1996,8 @@ public enum OpCode : byte
1993
1996
APPEND=0xCF,
1994
1997
1995
1998
/// <summary>
1996
-
/// A value v, index n (or key) and an array (or map) are taken from main stack. Attribution array[n]=v (or map[n]=v) is performed.
1999
+
/// A value, index n (or key) and an array (or buffer, map) are taken from main stack.
2000
+
/// Attribution array[n] = value (or buffer[n] = value, map[n] = value) is performed.
1997
2001
///
1998
2002
/// <remarks>
1999
2003
/// Push: 1 item(s)
@@ -2003,7 +2007,7 @@ public enum OpCode : byte
2003
2007
SETITEM=0xD0,
2004
2008
2005
2009
/// <summary>
2006
-
/// An array is removed from the top of the main stack and its elements are reversed.
2010
+
/// An array or buffer is removed from the top of the main stack and its elements are reversed.
2007
2011
///
2008
2012
/// <remarks>
2009
2013
/// Push: 0 item(s)
@@ -2100,7 +2104,7 @@ public enum OpCode : byte
2100
2104
ABORTMSG=0xE0,
2101
2105
2102
2106
/// <summary>
2103
-
/// Pops the top two stack items. If the second-to-top stack value is false, exits the vm execution and sets the
2107
+
/// Pops the top two stack items. If the second-to-top stack value is false(or null, zero), exits the vm execution and sets the
2104
2108
/// vm state to FAULT. In this case, the top stack value is used as reason for the exit. Otherwise, it is ignored.
0 commit comments