Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Assume there is a Mac and a HP computer each has an Intel microprocessor. Would

ID: 2247512 • Letter: A

Question

Assume there is a Mac and a HP computer each has an Intel microprocessor. Would an assembly program produced using the Mac computer run on the HP computer? Justify your answer. What is the sum of each pair of binary integers ? (assuming S-bit register is used) 10101011 + 11110000 Calculate the following operations using two's complement method: (assuming 4-bit register is used) -9-2 What is the binary representation of the following hexadecimal numbers? 1243E8CF What is the 16-bit hexadecimal representation of each of the following signed decimal integers? -29 What is the decimal representation of each of the following signed binary numbers? a. 10110101 b. 01110111 What is the sum of each pair of hexadecimal integers? a. 8CF + AD1 b. D49 + 7AB What is the largest decimal value you can represent using a 86-bit signed integer?

Explanation / Answer

2. The program will run on the HP computer iff it has the same microprocesor as that of the MAC. This is because assembly level programs vary from processor to processor and doesn't depend upon the platform they are running on.

3. The sum of the numbers are:

10101011

11110000 +

----------------

10011011 with carry 1

4. The 2's complement of -9 and -2 are:

1 0111

1 1110 +

----------

1 0101 which is the 2's complement form.

Converting it back to decimal we get, -11

5. We convert the individual hex digits into their 4 bit binary representation and obtain the answer as follows:

1243E8CF -> 00010010010000111110100011001111 which is the required answer

Please ask the rest of the questions in a separate question.