What does the following code do?
TEQ r0,#0
RSBMI r0,r0,#0
These two instructions take the absolute value of a two’s complement integer. The sign is first tested by the test
equal instruction and then a conditional reverse subtract subtracts r0 from 0 if the test was negative (i.e., the
negative is negated to create the positive absolute value).
TEQ r0,#0 ;test sign of r0
RSBMI r0,r0,#0 ;if negative then r0 = 0 – r0 (negate it)
You might also like to view...
In C++, some of the following are legal identifiers. Which? Why?
a. 9xyz b. Xyz c. X+yz d. xy_z e. xyz!
The JList GUI component generates events that call the actionStateChanged method.
Answer the following statement true (T) or false (F)
Answer the following questions true (T) or false (F)
1. The PUSH instruction copies a value from the stack to an operand before decrementing the stack pointer. 2. In 32-bit mode, immediate values pushed on the stack are always 32 bits long. 3. The PUSHAD instruction pushes all the 32-bit general-purpose registers on the stack.
A preview of the print layout is displayed in _____.
A. the right pane B. a new window C. the left pane D. the bottom pane