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

Chapter 1 2. Convert the following numbers from one type to the other one. (1) 0

ID: 3746246 • Letter: C

Question

Chapter 1 2. Convert the following numbers from one type to the other one. (1) 01011100B-?D (3) 135D-?B (5) 101 100 10B-O-7H 3. What is the difference between packed BCD and unpacked BCD. Write the packed and unpacked BCDs for the decimal 254 7. Suppose machine-word length n=8. Write the original binary data, radix-1 complements, radix complements of the following numbers. (1)X=+1101001B (2) X=+1 1 1 1000B (3) --1 000000B (4) X-1101011B Chapter 2 2. Which flag bits are included in the flag register? Explain the functions of these flag bits. 5. What is the difference between the logical address and the physical one? How can you convert the logical address into the physical one? 6. Write the segment base, offset and physical addresses of the following logical one. (1) 2314H: 0035H (2) 1FDOH: 000AH 9. There exists a memory region of data including 16 words, whose start address is 70A0H DDF6H. Write the physical addresses of the first and the last words, respectively 14.How many is the maximum storage space of 80486 memory? How many is the virtual memory space? What is the difference between them?

Explanation / Answer


CHAPTER 1

Q 2.1 Decimal of 01011100 is 92.

Calculation: 01011100 = (0 × 2) + (1 × 2) + (0 × 2) + (1 × 2) + (1 × 2³) + (1 × 2²) + (0 × 2¹) + (0 × 2) = 92

Q 2.2 Binary of 135 is 10000111.

Calculation:

So, 13510 = 100001112

Q 2.3 10110010 in Quarterany is 2302.

Calculation: Group the bits in pairs. And convert them to their respective quarternary forms.

10110010 in Hex is B2.

Calculation: Make groups of 4 bits. Convert them to their respective hex form.

Q 3. Unpacked BCDs use 1 byte for storing one digit while Packed BCDs use 4 bits for 1 digit (that means 1 byte for 2 digits).

E.g. For storing 11,
Unpacked BCD - 00000001 00000001
Packed BCD - 00010001

For storing decimal 254,
Unpacked BCD - 00000010 00000101 00000100
Packed BCD - 00000010 01010100

For convertion follow this table:

Q 7

Here, I have assumed that original binary data means adding 0 to the MSB(Most significant bit) if number is positive. And adding 1 to MSB if number is negative.

How to calculate Radix-1's complement - Convert all 0's to 1's and convert all 1's to 0's.

How to calculate Radix complement - Add 1 to the radix-1's complement.

CHAPTER 2

Q2. There are different flag bits for different microprocessors. Since you have not specified the microprocessor, I am answering the common flag bits.

Division by 2 Quotient Remainder Bit# 135/2 67 1 0 67/2 33 1 1 33/2 16 1 2 16/2 8 0 3 8/2 4 0 4 4/2 2 0 5 2/2 1 0 6 1/2 0 1 7
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote