summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTest_User <hax@andrewyu.org>2023-06-10 17:58:17 -0400
committerTest_User <hax@andrewyu.org>2023-06-10 17:58:17 -0400
commit56b6e947440b68b01b7018ab2e2bfd6ec22633e1 (patch)
tree9da686b5aa6da2de833460749efe414387b3f638
parent1e6377c101b17cb4b6140ef24d673e47e41cfa22 (diff)
downloadspecification-56b6e947440b68b01b7018ab2e2bfd6ec22633e1.tar.gz
specification-56b6e947440b68b01b7018ab2e2bfd6ec22633e1.zip
Fix subtract parameter ordering, add .gitignore for active nano
-rw-r--r--cpu/instructions/arithmetic/subtract.txt2
-rw-r--r--cpu/instructions/arithmetic/subtract_with_borrow.txt2
2 files changed, 2 insertions, 2 deletions
diff --git a/cpu/instructions/arithmetic/subtract.txt b/cpu/instructions/arithmetic/subtract.txt
index 273ca46..87d13c3 100644
--- a/cpu/instructions/arithmetic/subtract.txt
+++ b/cpu/instructions/arithmetic/subtract.txt
@@ -4,7 +4,7 @@ Usage:
Subtract <output> <value0> <value1>
Effect:
- Subtracts <value0> from <value1> and stores it in <output>
+ Subtracts <value1> from <value0> and stores it in <output>
Exceptions:
None
diff --git a/cpu/instructions/arithmetic/subtract_with_borrow.txt b/cpu/instructions/arithmetic/subtract_with_borrow.txt
index 8f06e37..0e880f0 100644
--- a/cpu/instructions/arithmetic/subtract_with_borrow.txt
+++ b/cpu/instructions/arithmetic/subtract_with_borrow.txt
@@ -4,7 +4,7 @@ Usage:
subtract_with_borrow <output> <value0> <value1> <reference> <offset>
Effect:
- Subtracts (<value0> + bit <offset> in <reference>) from <value1>
+ Subtracts (<value1> + bit <offset> in <reference>) from <value0> and stores it in <output>
Exceptions:
None