Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1 - 2 : Suppose that each of num 1 , num 2 , and num 3 references a byte in memory and that an
: Suppose that each of num num and num references a byte in memory and that an unsigned number is stored in each byte. Assume that the first number is no larger than three significant bits the second number is no larger than six significant bits and the third number is no larger than seven significant bits Suppose we pack all three of these numbers into a bit word in the AX register, copying the low order three bits from num to bits of AX the low order six bits from num to bits of AX and the low order seven bits from num to bits of AX If numbers and are at num num and num respectively, what will be in AX after packing hex Show work Give an x code fragment that packs all three of these numbers into a bit word in the AX register as described above. Hint: Use logical and shift instructions. Be sure to include appropriate comments. Give an x code fragment that unpacks the bit number in the AX register into threebit, sixbit, and sevenbit numbers, padding each value with zeros on the left to make eight bits, and storing the resulting bytes at num num and num respectively. The value stored in AX must NOT be altered after unpacking. Do NOT use other registers or memory labels. Be sure to include appropriate comments.
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