Tuesday, September 13, 2011

Microprocessor : Assignment 1

Microprocessor (PCEC4301), 5th Sem. EIE Assignment -1


Short Question Type:

1 How much memory can 8086 directly address? How large is the I/O address space of 8086?

2 Distinguish between minimum mode 8086 system and maximum mode 8086 system.

3 Write the linear address, 1234A and 000F0 in the segmented from in two ways.

4 What is the region for having segmentation in 8086?

5 What is meant by stack and stack pointer? What are the instructions associated with these?

6 Differentiate between maximum and minimum mode operation of 8086.

7 If the current values in CS and IP are 0200 and 01AC respectively, what is the address of the next instruction?

8 Define the segment and offset for any given address.

9 Which flag determines whether the address for a string operation is incremented or decremented?

10 What is stored at address FFFF0 and what is so important about this addresses?

11 How is the word value of a data register labeled?

12 What dedicated operations are assigned to the CX, BX, AX?

13 What is the difference between SI and DI?

14 How are status flags used by software?

15 A data segment is to be located from address A0000 to AFFFF; what value must be loaded into DS?

16 Explain the function of these two following instructions of 8086 MPU. JCXZ and MOVSB.

17 What is the difference between the following two instructions?

MOV AX, TABLE_ADDR

LEA AX, TABLE_ADDR

18 What is the main difference between a stack segment and a data segment in Intel processors?

19 Why the memory segments limited to 64K?

20 Explain why CS can be source but cannot be a destination?

21 What are packed and unpacked BCD numbers?

22 Write an instruction in 8086 that will move the immediate value 1234H into CX register. Which type of addressing mod is it?

23 What would be the offset required to map to physical address location 002C3H if the contents of the corresponding segment are 002AH?

24 What is the range of bytes of an instruction of 8086? Give the instruction format for the immediate operand to register.

25 Explain the function of BIU and EU in 8086.

Long Question Type:

1 What is the difference between the functions of the status and control flags? Make a list of the status and control flags provided in 8086. Describe the functions of each of these. (10)

2 Explain the concept of segmentation in 8086 microprocessor. The capacity of each segment is 64K. How this concept of segmentation does help in addressing the memory? (10)

3 Give examples for each of the addressing modes of 8086 processor. (5)

4 Which of the following are invalid assembly language instructions? State the error for each invalid instruction. Assume that all identifiers are variables and are associated with words. (5)

MOV BP, AL

MOV WORD_OP[BX+4*3][DI], SP

MOV WORD_OP1, WORD_OP2

MOV AX, WORD_OP1[DX]

MOV CS, AX

MOV DS, BP

MOV SAVE_WORD, DS

5 Write an assembly code to move a string of 16 bytes long from the offset address 0200H to 0300H in the segment 7000H. Discuss on alternate ways of writing this code. (10)

6 Suppose DS = 8888H, ES = 2345H, CS = 789AH, SS = F123H, BX = 1234H, BP = 3333H, SI = F000H. What physical address in memory are accessed by the following instructions: (10)

MOV AH, [BX+SI+10H]

MOV BH, [BP]

MOV CX, [CS:SI]

7 Write an assembly language program for 8086 MPU to add to vectors containing 10 numbers of data. (7)

8 Write an assembly language program with flow chart for addition of a three byte number that is stored at address 60003H to the three byte number that is stored at address 60000H and store the result at address 60020H to 60023H.

9 Write an assembly language program for 8086 microprocessor to multiply two 8-bit numbers stored in two different location and stored the result in another location using both direct and indirect addressing.

10 Find the machine code for the instruction ADD [BX][DI] + 2345, AX. The opcode fields for ADD = 000000 for the 8086 microprocessor.

No comments:

Post a Comment