I was wondering if there is a command/method to perform modulo in Motorola 68000 assembly?
I want to perform d4 mod 1000 and d3 mod 100.
Current I am using the following formula but this take several lines,
if a mod n then a - (n * int(a/n))
I have seen this formula for d0 mod d1
CLR.L D2
MOVE.W D0,D2
DIVU D1,D2
SWAP D2
Thanks for the answers.