Added integer division and square root #20
+3
-1
@@ -1,7 +1,7 @@
|
||||
include errno
|
||||
|
||||
; (uint32_t, uint32_t) div(uint32_t, uint32_t);
|
||||
; Divides two integers.
|
||||
; Divides two unsigned 32 bit integers.
|
||||
|
Mutex marked this conversation as resolved
Outdated
|
||||
;
|
||||
; Arguments:
|
||||
; - r1: Dividend
|
||||
@@ -9,6 +9,8 @@ include errno
|
||||
; Results:
|
||||
; - r1: Quotient
|
||||
; - r2: Remainder
|
||||
; Clobbers:
|
||||
|
Mutex marked this conversation as resolved
Outdated
Gelthor
commented
Missing clobbers: r1-r6 Missing clobbers: r1-r6
|
||||
; - r1 - r4
|
||||
; Errors:
|
||||
; - `ERR_DIV_BY_ZERO`: The divisor was `0`.
|
||||
;
|
||||
|
||||
Reference in New Issue
Block a user
Maybe specify this is unsigned division in the descreption asa well as the type above?