Question: Variable g contains a 64-bit value, but there's an integer number represented in bits 12-19. Write instructions (LEGv8) to manipulate the value in g so
Variable g contains a 64-bit value, but there's an integer number represented in bits 12-19. Write instructions (LEGv8) to manipulate the value in g so that g ends up containing only that 8-bit number (with the first 56 bits all zeros). Hint: If we had to do this in Java without using bitwise logical operators, we would type something like this:
g = g % 4096; // return only the lower 12 bits g = g / 16; // will get rid of the lowest 4 bits
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
