Amiga Assembler

Division / Modulus
Division and modulus are performed as one operation:

DIVU	16bit, 32bit divu	#2, d0	; d0 high word = d0 / 2, ;    low word = d0 % 2

Test if d0 % 10 = 0:

divu	#10, d0	beq	#0, d0	; branch if remainder = 0