summaryrefslogtreecommitdiff
path: root/cpu/instructions/arithmetic/unsigned_multiply.txt
diff options
context:
space:
mode:
authorTest_User <hax@andrewyu.org>2023-02-16 14:57:20 -0500
committerTest_User <hax@andrewyu.org>2023-02-16 14:57:20 -0500
commitcf81293d79cf3a5cfbcdb55eb6368bbcb5f06fd7 (patch)
tree9b7405bbd5f9aa15c7eec892647a6c0113e62e78 /cpu/instructions/arithmetic/unsigned_multiply.txt
parent9d1465f1c859ca97517c26f4bf751b682ec337e9 (diff)
downloadspecification-cf81293d79cf3a5cfbcdb55eb6368bbcb5f06fd7.tar.gz
specification-cf81293d79cf3a5cfbcdb55eb6368bbcb5f06fd7.zip
Finish adding basic arithmetic instructions
Diffstat (limited to 'cpu/instructions/arithmetic/unsigned_multiply.txt')
-rw-r--r--cpu/instructions/arithmetic/unsigned_multiply.txt14
1 files changed, 14 insertions, 0 deletions
diff --git a/cpu/instructions/arithmetic/unsigned_multiply.txt b/cpu/instructions/arithmetic/unsigned_multiply.txt
new file mode 100644
index 0000000..da1cfbb
--- /dev/null
+++ b/cpu/instructions/arithmetic/unsigned_multiply.txt
@@ -0,0 +1,14 @@
+Number of parameters: 4
+
+Usage:
+ unsigned_multiply <overflow> <result> <value0> <value1>
+
+Effect:
+ Performs the unsigned multiplication <value0>*<value1>, storing the integer result in <result> and any overflowing bits into <overflow>
+
+Exceptions:
+ None
+
+Flags:
+ Sets the carry flag if the overflow was non-zero
+ The overflow flag is never set