Everything

<<


Obtains only the left-shifted value of the first term which appears in the second term.

[Function]

Returns a value obtained by shifting the value of the 1st term of an expression to the left the number of bits specified by the value of the 2nd term.

Zeros equivalent to the specified number of bits shifted move into the low-order bits.

If the number of shifted bits is 0, the value of the first term is returned as is. If the number of shifted bits exceeds 31, 0 is returned.

[Application example]

mov32   0x21 << 2, r20            ; (1)

(1)

This operator shifts the value "0x21" to the left by 2 bits.
"0x84" is forwarded to r20.
Therefore, (1) in the above example can also be described as: mov32 0x84, r20.

 

mov32   0x3BF >> 2 << 2, r20     ; (2)

(2)

This operator shifts the value "0x3B" to the right by 2 bits, and shifts to the left by 2 bits.
"0x3BC" is forwarded to r20.
Therefore, (2) in the above example can also be described as: mov32 0x3BC, r20.