Skip to content

Commit b5db550

Browse files
committed
Add: detailed doc for OpCode
1 parent 000c1a7 commit b5db550

File tree

3 files changed

+625
-174
lines changed

3 files changed

+625
-174
lines changed

src/Neo.VM/JumpTable/JumpTable.Control.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,7 @@ public virtual void ExecuteJumpOffset(ExecutionEngine engine, int offset)
635635
public virtual void ExecuteTry(ExecutionEngine engine, int catchOffset, int finallyOffset)
636636
{
637637
if (catchOffset == 0 && finallyOffset == 0)
638-
throw new InvalidOperationException($"catchOffset and finallyOffset can't be 0 in a TRY block");
638+
throw new InvalidOperationException($"catchOffset and finallyOffset can't both be 0 in a TRY block.");
639639
if (engine.CurrentContext!.TryStack is null)
640640
engine.CurrentContext.TryStack = new Stack<ExceptionHandlingContext>();
641641
else if (engine.CurrentContext.TryStack.Count >= engine.Limits.MaxTryNestingDepth)

src/Neo.VM/JumpTable/JumpTable.Splice.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ public virtual void Memcpy(ExecutionEngine engine, Instruction instruction)
6363

6464
/// <summary>
6565
/// Concatenates two buffers and pushes the result onto the evaluation stack.
66+
/// The result is the first pushed item concatenated with the second pushed item.
6667
/// <see cref="OpCode.CAT"/>
6768
/// </summary>
6869
/// <param name="engine">The execution engine.</param>
@@ -82,7 +83,7 @@ public virtual void Cat(ExecutionEngine engine, Instruction instruction)
8283
}
8384

8485
/// <summary>
85-
/// Extracts a substring from the specified buffer and pushes it onto the evaluation stack.
86+
/// Extracts a sub-buffer from the specified buffer and pushes it onto the evaluation stack.
8687
/// <see cref="OpCode.SUBSTR"/>
8788
/// </summary>
8889
/// <param name="engine">The execution engine.</param>

0 commit comments

Comments
 (0)