Everything

%


Obtains the remainder in the result of dividing the value of the 1st term of an expression by the value of its 2nd term.

[Function]

Obtains the remainder in the result of dividing the value of the 1st term of an expression by the value of its 2nd term.

An error occurs if the divisor (2nd term) is 0.

[Application example]

mov     256 % 50, r10   ; (1)

(2)

The result of the division "256 / 50" is 5 with remainder 6.
The MOD operator returns the remainder 6.
Therefore, (1) in the above expression can also be described as: mov 6, r10.