What is the effect of the instruction MOV r0,r0, ASR #31?

What will be an ideal response?


If you perform an arithmetic shift right on a two’s complement number, the sign bit is propagated. If you do this operation 31 times, you will be left only with 32 copies of the sign bit. That is, a negative number would yield 1111…1 and a positive number would yield 0000…0. This is a way of creating a ‘sign mask’.

Computer Science & Information Technology

You might also like to view...

What is the upper limit for the number of HTML files that can link to the same external style sheet file?

A. 99 B. 1,249 C. 1,250 D. There is no limit.

Computer Science & Information Technology

Which shortcut key moves focus to the previous field of the current record?

A. [Home] B. [Shift][Tab] C. [Up Arrow] D. [F5]

Computer Science & Information Technology

What term does syslog use when referring to the monitored aspect of the system?

A. Facilities B. Counters C. Modes D. Characteristics

Computer Science & Information Technology

The expression 4 + 20 / (3 - 1) * 2 is evaluated to

a. 4 b. 20 c. 24 d. 9 e. 25

Computer Science & Information Technology