Boolean Logic Commands
Overview
The custom logic editor uses the following boolean logic commands:
-
LOAD_K_BIT
-
LOAD_BIT
-
LOAD_TMP_BIT
-
LOAD_NV_BIT
-
LOAD_NOT_BIT
-
LOAD_NOT_TMP_BIT
-
LOAD_NOT_NV_BIT
-
AND_BIT
-
AND_TMP_BIT
-
AND_NV_BIT
-
AND_NOT_BIT
-
AND_NOT_TMP_BIT
-
AND_NOT_NV_BIT
-
OR_BIT
-
OR_TMP_BIT
-
OR_NV_BIT
-
OR_NOT_BIT
-
OR_NOT_TMP_BIT
-
OR_NOT_NV_BIT
-
SET_BIT
-
SET_TMP_BIT
-
SET_NV_BIT
-
SET_NOT_BIT
-
SET_NOT_TMP_BIT
-
SET_NOT_NV_BIT
LOAD_K_BIT
The LOAD_K_BIT
command loads a constant Boolean value (0 or 1) into the 1-bit accumulator.
Arguments |
Representation |
---|---|
1 |
|
Input arguments |
Type |
Range |
Description |
---|---|---|---|
|
BOOL |
0/1 |
A constant value |
No output arguments.
LOAD_BIT
The LOAD_BIT
command loads the Boolean value (0 or 1) of a register bit into
the 1-bit accumulator.
Arguments |
Representation |
---|---|
2 |
|
Input arguments |
Type |
Range |
Description |
---|---|---|---|
|
|
0–9249 |
The register address |
|
|
0–15 |
The bit number |
No output arguments.
LOAD_TMP_BIT
The LOAD_TMP_BIT
command loads the Boolean value (0 or 1) of
a temporary register bit into the 1-bit accumulator.
Arguments |
Representation |
---|---|
2 |
|
Input arguments |
Type |
Range |
Description |
---|---|---|---|
|
|
0–299 |
The temporary register number |
|
|
0–15 |
The bit number |
No output arguments.
LOAD_NV_BIT
The LOAD_NV_BIT
command loads the Boolean value (0 or 1) of a non-volatile register
bit into the 1-bit accumulator.
Arguments |
Representation |
---|---|
2 |
|
Input arguments |
Type |
Range |
Description |
---|---|---|---|
|
|
0–63 |
The non-volatile register number |
|
|
0–15 |
The bit number |
No output arguments.
LOAD_NOT_BIT
The LOAD_NOT_BIT
command:
-
Inverts the Boolean value (0 or 1) of a specified register bit, then
-
Loads the inverted value into the 1-bit accumulator.
Arguments |
Representation |
---|---|
2 |
|
Input arguments |
Type |
Range |
Description |
---|---|---|---|
|
|
0–9249 |
The register address |
|
|
0–15 |
The bit number |
No output arguments.
LOAD_NOT_TMP_BIT
The LOAD_NOT_TMP_BIT
command:
-
Inverts the Boolean value (0 or 1) of a specified temporary register bit, then
-
Loads the inverted value into the 1-bit accumulator.
Arguments |
Representation |
---|---|
2 |
|
Input arguments |
Type |
Range |
Description |
---|---|---|---|
|
|
0–299 |
The temporary register number |
|
|
0–15 |
The bit number |
No output arguments.
LOAD_NOT_NV_BIT
The LOAD_NOT_NV_BIT
command:
-
Inverts the Boolean value (0 or 1) of a selected non-volatile register bit, then
-
Loads the inverted value into the 1-bit accumulator.
Arguments |
Representation |
---|---|
2 |
|
Input arguments |
Type |
Range |
Description |
---|---|---|---|
|
|
0–63 |
The non-volatile register number |
|
|
0–15 |
The bit number |
No output arguments.
AND_BIT
The AND_BIT
command makes a logical AND
link
between a register bit value and the accumulator content in logic
memory:
-
If the 1-bit accumulator equals 1 and the linked register bit equals 1, the result of the
AND
process is also 1. -
In all other cases the result of the
AND
process is 0.
The result is saved in the 1-bit accumulator.
Arguments |
Representation |
---|---|
2 |
|
Input arguments |
Type |
Range |
Description |
---|---|---|---|
|
|
0–9249 |
The register address |
|
|
0–15 |
The bit number |
No output arguments.
AND_TMP_BIT
The AND_TMP_BIT
command makes a logical AND
link
between a temporary register bit value and the accumulator content
in logic memory.
-
If the 1-bit accumulator equals 1 and the linked temporary register bit equals 1, the result of the
AND
process is also 1. -
In all other cases the result of the
AND
process is 0.
The result is saved in the 1-bit accumulator.
Arguments |
Representation |
---|---|
2 |
|
Input arguments |
Type |
Range |
Description |
---|---|---|---|
|
|
0–299 |
The temporary register number |
|
|
0–15 |
The bit number |
No output arguments.
AND_NV_BIT
The AND_NV_BIT
command makes a logical AND
link
between a non-volatile register bit value and the accumulator content
in logic memory.
-
If the 1-bit accumulator equals 1 and the linked non-volatile register bit equals 1, the result of the
AND
process is also 1. -
In all other cases the result of the
AND
process is 0.
The result is saved in the 1-bit accumulator.
Arguments |
Representation |
---|---|
2 |
|
Input arguments |
Type |
Range |
Description |
---|---|---|---|
|
|
0–63 |
The non-volatile register number |
|
|
0–15 |
The bit number |
No output arguments.
AND_NOT_BIT
The AND_NOT_BIT
command inverts the Boolean value (0 or 1) of a specified register
bit, then makes a logical AND
link
between it and the accumulator content in logic memory:
-
If the 1-bit accumulator equals 1 and the linked register bit equals 0, the result of the
AND
process is also 1. -
In all other cases the result of the
AND
process is 0.
The result is saved in the 1-bit accumulator.
Arguments |
Representation |
---|---|
2 |
|
Input arguments |
Type |
Range |
Description |
---|---|---|---|
|
|
0–9249 |
The register address |
|
|
0–15 |
The bit number |
No output arguments.
AND_NOT_TMP_BIT
The AND_NOT_TMP_BIT
command inverts the Boolean value (0 or
1) of a specified temporary register bit, then makes a logical AND
link between it and the accumulator content
in logic memory:
-
If the 1-bit accumulator equals 1 and the linked temporary register bit equals 0, the result of the
AND
process is also 1. -
In all other cases the result of the
AND
process is 0.
The result is saved in the 1-bit accumulator.
Arguments |
Representation |
---|---|
2 |
|
Input arguments |
Type |
Range |
Description |
---|---|---|---|
|
|
0–299 |
The temporary register number |
|
|
0–15 |
The bit number |
No output arguments.
AND_NOT_NV_BIT
The AND_NOT_NV_BIT
command inverts the Boolean value (0 or 1)
of a selected non-volatile register bit, then makes a logical AND
link between it and the accumulator content
in logic memory:
-
If the 1-bit accumulator equals 1 and the linked non-volatile register bit equals 0, the result of the
AND
process is also 1. -
In all other cases the result of the
AND
process is 0.
The result is saved in the 1-bit accumulator.
Arguments |
Representation |
---|---|
2 |
|
Input arguments |
Type |
Range |
Description |
---|---|---|---|
|
|
0–63 |
The non-volatile register number |
|
|
0–15 |
The bit number |
No output arguments.
OR_BIT
The OR_BIT
command makes a logical OR
link
between a register bit value and the accumulator content in logic
memory:
-
If the value of either the 1-bit accumulator or the register bit equals 1, the result of the
OR
process is also 1. -
If the values of all compared bits equal 0, the result of the
OR
process is 0.
The result is saved in the 1-bit accumulator.
Arguments |
Representation |
---|---|
2 |
|
Input arguments |
Type |
Range |
Description |
---|---|---|---|
|
|
0–9249 |
The register address |
|
|
0–15 |
The bit number |
No output arguments.
OR_TMP_BIT
The OR_TMP_BIT
command makes a logical OR
link
between a temporary register bit value and the accumulator content
in logic memory.
-
If the value of either the 1-bit accumulator or the temporary register bit equals 1, the result of the
OR
process is also 1. -
If the values of all compared bits equal 0, the result of the
OR
process is 0.
The result is saved in the 1-bit accumulator.
Arguments |
Representation |
---|---|
2 |
|
Input arguments |
Type |
Range |
Description |
---|---|---|---|
|
|
0–299 |
The temporary register number |
|
|
0–15 |
The bit number |
No output arguments.
OR_NV_BIT
The OR_NV_BIT
command makes a logical OR
link
between a non-volatile register bit value and the accumulator content
in logic memory.
-
If the value of either the 1-bit accumulator or the non-volatile register bit equals 1, the result of the
OR
process is also 1. -
If the values of all compared bits equal 0, the result of the
OR
process is 0.
The result is saved in the 1-bit accumulator.
Arguments |
Representation |
---|---|
2 |
|
Input arguments |
Type |
Range |
Description |
---|---|---|---|
|
|
0–63 |
The non-volatile register number |
|
|
0–15 |
The bit number |
No output arguments.
OR_NOT_BIT
The OR_NOT_BIT
command inverts the Boolean value (0 or 1) of a specified register
bit, then makes a logical OR
link
between it and the accumulator content in logic memory:
-
If the value of either the 1-bit accumulator or the register bit equals 0, the result of the
OR
process is also 1. -
If the values of all compared bits equal 0, the result of the
OR
process is 0.
The result is saved in the 1-bit accumulator.
Arguments |
Representation |
---|---|
2 |
|
Input arguments |
Type |
Range |
Description |
---|---|---|---|
|
|
0–9249 |
The register address |
|
|
0–15 |
The bit number |
No output arguments.
OR_NOT_TMP_BIT
The OR_NOT_TMP_BIT
command inverts the Boolean value (0 or 1)
of a specified temporary register bit, then makes a logical OR
link between it and the accumulator content
in logic memory:
-
If the value of either the 1-bit accumulator or the temporary register bit equals 0, the result of the
OR
process is also 1. -
If the values of all compared bits equal 0, the result of the
OR
process is 0.
The result is saved in the 1-bit accumulator.
Arguments |
Representation |
---|---|
2 |
|
Input arguments |
Type |
Range |
Description |
---|---|---|---|
|
|
0–299 |
The temporary register number |
|
|
0–15 |
The bit number |
No output arguments.
OR_NOT_NV_BIT
The OR_NOT_NV_BIT
command inverts the Boolean value (0 or 1)
of a selected non-volatile register bit, then makes a logical OR
link between it and the accumulator content
in logic memory:
-
If the value of either the 1-bit accumulator or the non-volatile register bit equals 0, the result of the
OR
process is also 1. -
If the values of all compared bits equal 0, the result of the
OR
process is 0.
The result is saved in the 1-bit accumulator.
Arguments |
Representation |
---|---|
2 |
|
Input arguments |
Type |
Range |
Description |
---|---|---|---|
|
|
0–63 |
The non-volatile register number |
|
|
0–15 |
The bit number |
No output arguments.
SET_BIT
The SET_BIT
command sets the value of the 1-bit accumulator to a specified register
bit.
Arguments |
Representation |
---|---|
2 |
|
No input arguments.
Output arguments |
Type |
Range |
Description |
---|---|---|---|
|
|
0–9249 |
The register address |
|
|
0–15 |
The bit number |
SET_TMP_BIT
The SET_TMP_BIT
command sets the value of the 1-bit accumulator to a specified temporary
register bit.
Arguments |
Representation |
---|---|
2 |
|
No input arguments.
Output arguments |
Type |
Range |
Description |
---|---|---|---|
|
|
0–299 |
The temporary register number |
|
|
0–15 |
The bit number |
SET_NV_BIT
The SET_NV_BIT
command sets the value of the 1-bit accumulator to a specified non-volatile
register bit.
Arguments |
Representation |
---|---|
2 |
|
No input arguments.
Output arguments |
Type |
Range |
Description |
---|---|---|---|
|
|
0–63 |
The non-volatile register number |
|
|
0–15 |
The bit number |
SET_NOT_BIT
The SET_NOT_BIT
command sets the inverted value of the 1-bit accumulator to a specified
register bit.
Arguments |
Representation |
---|---|
2 |
|
No input arguments.
Output arguments |
Type |
Range |
Description |
---|---|---|---|
|
|
0–9249 |
The register address |
|
|
0–15 |
The bit number |
SET_NOT_TMP_BIT
The SET_NOT_TMP_BIT
command sets the inverted value of the 1-bit
accumulator to a specified temporary register bit.
Arguments |
Representation |
---|---|
2 |
|
No input arguments.
Output arguments |
Type |
Range |
Description |
---|---|---|---|
|
|
0–299 |
The temporary register number |
|
|
0–15 |
The bit number |
SET_NOT_NV_BIT
The SET_NOT_NV_BIT
command sets the inverted value of the 1-bit
accumulator to a specified non-volatile register bit.
Arguments |
Representation |
---|---|
2 |
|
No input arguments.
Output arguments |
Type |
Range |
Description |
---|---|---|---|
|
|
0–63 |
The non-volatile register number |
|
|
0–15 |
The bit number |