Assignment 1
Assignment 1
Question # 1: Convert the following decimal values to binary: a. 58.12 b. 20.125 Question # 2: Convert the following octal numbers to hexadecimal numbers: a. 743.12 b. 365.34 Question # 3: Convert the following hex values to decimal: a. 2C1.2A7 b. 37FD.25 Question # 4: Convert the following from Decimal fraction to Single precision Floating point representation and show the result in hexadecimal form a. 59.37 b. -114 c. 0.0427 Question # 5: Below are shown contents of a byte addressable memory starting from address 0x02F6, Find value of each of 6 data elements in HEX if size of data is shown below: 8-bit data, 16-bit data, 32-bit data, 16-bit data, 8-bit data, 32-bit data a. If memory is Little endian b. If memory is Big endian
Address 0x030E 0x030D 0x030C 0x030B 0x030A 0x0309 0x0308 Memory Data 0x59 0x34 0x73 0xB5 0x2A 0x11 0x01 Address 0x0307 0x0306 0x0305 0x0304 0x0303 0x0302 0x0301 Memory Data 0xFF 0x3D 0x6E 0xEF 0x03 0x00 0x19
Instructor: Mubashar Ejaz Ahmad, DoEE, MAJU Islamabad
Assignment # 01
Question # 6: Compute value of 20-bit Physical address for following Base and Offset pairs: a. 0x1050 : 0x1236 b. 0xA125 : 0x4075 Which of the physical addresses are alias of each other? Question # 7: Show how the double word 1234567816 is stored in memory starting at address A00116. Is the double word aligned or misaligned? Question # 8: For 8086 memory address space do the following computations a. If below are contents of segment registers, Find physical address of first and last location for all segments CS = 72A8h DS = 20A0h SS = 300Dh ES = 82AAh b. Which of the segments in part (a) are contiguous, which ones are overlapping and which ones are disjointed Question #9: If the current values in the code segment register and the instruction pointer are 020016 and 01AC16 respectively, what physical address is used in the next instruction fetch? Question # 10: Answer the following questions a. How large is the 8088s I/O address space? b. What two address elements are combined to form a physical address? c. What is the function of the instruction pointer register?