Method swp
swp()
Swaps the first two values on top of the stack.
Declaration
public void swp()
swp(Int32, Int32)
Swaps the values at index a and b relative to the top of the stack.
Declaration
public void swp(int a = 1, int b = 0)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | a | Relative index of the first stack entry. |
| System.Int32 | b | Relative index of the second stack entry. |
swp(UInt32, UInt32)
Swaps the values at index a and b as absolute indices in the stack.
Declaration
public void swp(uint a, uint b)
Parameters
| Type | Name | Description |
|---|---|---|
| System.UInt32 | a | Absolute index of a stack entry. |
| System.UInt32 | b | Absolute index of a stack entry. |
Remarks
see: mark() for absolute indices.
swp(UInt32)
Swaps the values at index a as absolute index with the value on top of the stack.
Declaration
public void swp(uint a)
Parameters
| Type | Name | Description |
|---|---|---|
| System.UInt32 | a | Absolute index a stack entry. |