summaryrefslogtreecommitdiff
path: root/cpu/instructions/conditions/bitwise_condition.txt
diff options
context:
space:
mode:
Diffstat (limited to 'cpu/instructions/conditions/bitwise_condition.txt')
-rw-r--r--cpu/instructions/conditions/bitwise_condition.txt12
1 files changed, 12 insertions, 0 deletions
diff --git a/cpu/instructions/conditions/bitwise_condition.txt b/cpu/instructions/conditions/bitwise_condition.txt
new file mode 100644
index 0000000..48ddabd
--- /dev/null
+++ b/cpu/instructions/conditions/bitwise_condition.txt
@@ -0,0 +1,12 @@
+Number of parameters: 3
+
+Usage:
+ bitwise_condition <input> <bits to be compared> <value to compare with>
+
+Effect:
+ Sets the zero flag if exactly one of <bits to be compared> in <input> match <value to compare with>
+ Sets the overflow flag if at least one of <bits to be compared> in <input> match <value to compare with>
+ Sets the carry flag if all of <bits to be compared> in <input> match <value to compare with>
+
+Exceptions:
+ None