summaryrefslogtreecommitdiff
path: root/cpu/instructions/arithmetic/unsigned_divide.txt
diff options
context:
space:
mode:
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