%


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     A, #256 % 50    ; (1)

(1)

Execution of the MOV instruction loads a value of 6 in the A register.