LogicalOpcodes
Opcodes for set operators such as AND, OR, XOR
opAnd
function opAnd(address _ctxProgram, address) public
Compares two values in the stack. Put 1 if both of them are 1, put 0 otherwise
Parameters
Name | Type | Description |
---|---|---|
_ctxProgram | address | Context contract address |
address |
opOr
function opOr(address _ctxProgram, address) public
Compares two values in the stack. Put 1 if either one of them is 1, put 0 otherwise
Parameters
Name | Type | Description |
---|---|---|
_ctxProgram | address | Context contract address |
address |
opXor
function opXor(address _ctxProgram, address) public
Compares two values in the stack. Put 1 if the values are different and 0 if they are the same
Parameters
Name | Type | Description |
---|---|---|
_ctxProgram | address | Context contract address |
address |
opAdd
function opAdd(address _ctxProgram, address) public
Add two values and put result in the stack.
Parameters
Name | Type | Description |
---|---|---|
_ctxProgram | address | Context contract address |
address |
opSub
function opSub(address _ctxProgram, address) public
Subtracts one value from enother and put result in the stack.
Parameters
Name | Type | Description |
---|---|---|
_ctxProgram | address | Context contract address |
address |
opMul
function opMul(address _ctxProgram, address) public
Multiplies values and put result in the stack.
Parameters
Name | Type | Description |
---|---|---|
_ctxProgram | address | Context contract address |
address |
opDiv
function opDiv(address _ctxProgram, address) public
Divide two numbers from the top of the stack
This is an integer division. Example: 5 / 2 = 2
Parameters
Name | Type | Description |
---|---|---|
_ctxProgram | address | Context address |
address |