summaryrefslogtreecommitdiff
path: root/cpu/instructions/arithmetic/notes.txt
diff options
context:
space:
mode:
Diffstat (limited to 'cpu/instructions/arithmetic/notes.txt')
-rw-r--r--cpu/instructions/arithmetic/notes.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/cpu/instructions/arithmetic/notes.txt b/cpu/instructions/arithmetic/notes.txt
new file mode 100644
index 0000000..29500cb
--- /dev/null
+++ b/cpu/instructions/arithmetic/notes.txt
@@ -0,0 +1,4 @@
+Unless otherwise specified, all arithmetic instructions:
+ Set the zero flag when the result is 0
+ Set the overflow flag when a signed operation results in inversion of the sign due to lack of bits to store the value
+ Set the carry flag when an unsigned operation results in a lower number due to lack of bits to store the value