Why is sign?extension an important issue when we use a LDR instruction to load a register from memory, but of no importance when we use an STR to store a register in memory?

What will be an ideal response?


Data operations take place on the whole 32 bits of a register. If you load an 8 bit sign integer you have to sign extend it to 32 bits. Otherwise, the later 32?bit arithmetic would yield an incorrect value if you loaded a negative number. Memory has no concept of signed and unsigned; it just holds bit patterns.

Computer Science & Information Technology

You might also like to view...

Although the Cyberterrorism Preparedness Act of 2002 was not passed, many of its goals were addressed by the ___________

a. CIA b. Pentagon c. Patriot Act d. None of the above

Computer Science & Information Technology

Which of the following types of attacks are against the software application?

A. Cross-site scripting B. Spoofing C. Logic bombs D. SQL code injections

Computer Science & Information Technology

The Single Step button in the ____ group on the DESIGN tab is used to turn on single stepping.

A. Tools B. Debugging C. Formatting D. Form Design

Computer Science & Information Technology

When working with the CSS3 box-shadow style, the insert keyword is an optional keyword to display shadows within the object.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology