>>


Obtains only the right-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 right the number of bits specified by the value of the 2nd term.

Zeros equivalent to the specified number of bits shifted move into the high-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]

MOVW    AX, #0x01AF >> 5        ; (1)

(1)

The value "0x01AF" is shifted 5 bits to the right, leaving the sign bit.
"0x000D" is forwarded to AX.