mod in arm assembly code example
Example: MOD OPERATOR for register in arm assembly
udiv r0, r6, r7 @ no, div to get quotient
mul r1, r0, r7 @ need for computing remainder
sub r2, r6, r1 @ the mod (remainder)
udiv r0, r6, r7 @ no, div to get quotient
mul r1, r0, r7 @ need for computing remainder
sub r2, r6, r1 @ the mod (remainder)