NonConfidential  PDF version  ARM DUI0379G  
 
Home > Symbols, Literals, Expressions, and Operators > Multiplicative operators 
Multiplicative operators have the highest precedence of all binary operators. They act only on numeric expressions.
Table 73 Multiplicative operators
Operator  Alias  Usage  Explanation 

* 
A*B 
Multiply


/ 
A/B 
Divide


:MOD: 
% 
A:MOD:B 
A modulo B

:MOD:
operator on PCrelative expressions to ensure code
is aligned correctly. These alignment checks have the form
PCrelative
:MOD:
Constant
. For
example:AREA x,CODE ASSERT ({PC}:MOD:4) == 0 DCB 1 y DCB 2 ASSERT (y:MOD:4) == 1 ASSERT ({PC}:MOD:4) == 2 END