summaryrefslogtreecommitdiff
path: root/cpu/instructions/arithmetic/unsigned_divide.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_divide.txt
parent9d1465f1c859ca97517c26f4bf751b682ec337e9 (diff)
downloadspecification-cf81293d79cf3a5cfbcdb55eb6368bbcb5f06fd7.tar.gz
specification-cf81293d79cf3a5cfbcdb55eb6368bbcb5f06fd7.zip
Finish adding basic arithmetic instructions
Diffstat (limited to 'cpu/instructions/arithmetic/unsigned_divide.txt')
-rw-r--r--cpu/instructions/arithmetic/unsigned_divide.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/cpu/instructions/arithmetic/unsigned_divide.txt b/cpu/instructions/arithmetic/unsigned_divide.txt
new file mode 100644
index 0000000..b08f2ea
--- /dev/null
+++ b/cpu/instructions/arithmetic/unsigned_divide.txt
@@ -0,0 +1,10 @@
+Number of parameters: 4
+
+Usage:
+ unsigned_divide <result> <remainder> <numerand> <divisor>
+
+Effect:
+ Performs the unsigned division <numerand>/<divisor>, storing the integer result in <result> and the remainder in <remainder>
+
+Exceptions:
+ Division by 0