Question
1. Express the values 53 and -14 in 8-bit 2s complement in both binary and hexadecimal. 2. Compute 53 14 using 8-bit 2s complement arithmetic.
1. Express the values 53 and -14 in 8-bit 2s complement in both binary and hexadecimal.
2. Compute 53 14 using 8-bit 2s complement arithmetic. You must show your work.
3. Could 53 and -14 both still be represented if we only used 5-bit 2s complement? For each value if it can be done then express it in 5-bit 2s complement. If not, explain why. No explanation no credit.
4. What is ~(0x5A) ^ 0x3D, where ~ is bitwise NOT and ^ is bitwise XOR? Provide your result in both binary and hexadecimal.
5. What is 15 in 8-bit 2s complement notation? What is 22 in 8-bit 2s complement notation?
Show how to compute 1522 using 2s complement addition. What is the result in 8-bit 2s complement notation? Show your work.
6. Translate the following C code segment into ARMv8 assembly
int x = 5, y = 15, z = 10;
x = ++x + y++;
y = (x++ + y++) * z;
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started