|
ST20C2 Datasheet, PDF (15/212 Pages) STMicroelectronics – Instruction Set Reference Manual | |||
|
◁ |
Symbol
Meaning
Integer arithmetic with overflow checking
+checked
âchecked
Ãchecked
Add, subtract, and multiply of signed integers. If the computation overflows an
IntegerOverflow is signalled and the result of the operation is truncated to the
word length.
Unchecked (modulo) integer arithmetic
+
Integer add, subtract, multiply, divide and remainder. If the computation over-
â
flo ws the result of the operation is truncated to the word length. If a divide or
Ã
remainder by zero occurs the result of the operation is undefined. No errors are
/
signalled. The operator âââ is also used as a monadic operator. The sign of the
rem
remainder is the same as the sign of the dividend.
Signed comparison operators
<
Comparisons of signed integer and floating point v alues: âless thanâ, âgreater
>
thanâ, âless than or equalâ, âgreater than or equalâ, âequalâ and ânot equalâ.
â¤
â¥
=
â
Unsigned comparison operators
<unsigned
>unsigned
â¥unsigned
after
Comparisons of unsigned integer values: âless thanâ, âgreater thanâ, âgreater than
or equalâ, and âafterâ (for comparison of times).
Logical bitwise operations
â¼ (or BITNOT)
⧠(or BITAND)
⨠(or BITOR)
â (or BITXOR)
>>
<<
âNotâ (1âs complement), âandâ, âorâ, âexclusive orâ, and logical left and right shift
operations on bits in words.
Boolean operators
not
Boolean combination in conditionals.
and
or
Table 1.7 Operators used in the instruction descriptions
⢠if condition
statement
else if condition
statement
else
statement
These conditions can be nested. Braces, {}, are used to group statements which are
dependent on a condition. For example, the cj (conditional jump) instruction contains
the following lines:
if (Areg = 0)
IptrRegâ² â next instruction + n
15/212
®
|
▷ |