0% found this document useful (0 votes)
143 views

Sheet 6

This document contains a series of questions about the 8086 microprocessor architecture. It asks about register contents after sample instructions, default segment registers, addressing modes, physical address calculation, stack operations, and flag register contents. Questions cover topics such as segmented memory, the roles of the BIU and EU, addressing modes, pointer and index registers, and differences between LEA and MOV instructions.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
143 views

Sheet 6

This document contains a series of questions about the 8086 microprocessor architecture. It asks about register contents after sample instructions, default segment registers, addressing modes, physical address calculation, stack operations, and flag register contents. Questions cover topics such as segmented memory, the roles of the BIU and EU, addressing modes, pointer and index registers, and differences between LEA and MOV instructions.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

‫شركة شموع العلم للتدريب والتعليم‬ EE334

Sheet 6

Q1. Assume that AX contains 3A9FH to start with each time and determine AX after
executing the instructions:

a) CMP AX, 00H

b) NOT AX

c) SUB AL, AH

d) ROR AH,1

e) XCHG AL, AH

Q2. Given AX = 4C6FH, BX = 0120H, CX = 6622H, BX = 88FFh, CS= 2000H,


DS = 1000H, SS = 4000H, DI = 0100H, SP = 0200H, BP = 1400H.

a) Find the physical address of the lower and upper range of CS memory

b) Find the physical address of the lower and upper range of SS memory

c) Identify the operand addressing mode used and find the contents of destination and the
physical address accessed by the following instruction: MOV [BP + 100], AX

d) Identify the operand addressing mode used and find the contents of destination and the
physical address accessed by the following instruction: MOV [BP + DI +04H], CH

e) Identify the operand addressing mode used and what will be the contents of AX register
after the following instruction have executed: ADD AL, BH

Q3. Answer the following:


a) What are the default segment registers for IP and SP? Explain why?
b) What is the difference between JZ and JNZ instructions?
c) Write a single instruction that clears the AX register. Do not use SUB or MOV instructions
Q4. Answer by "agree" or " disagree" for the following questions
a) A memory location stores 2 bytes of information.
b) Stack pointer (SP) always holds the address of the next instruction.
c) Direction flag is used in string data transfer instructions.

1
‫شركة شموع العلم للتدريب والتعليم‬ EE334
Q5. Answer the following questions
a) How many the address lines does an 8086 have?
b) How many memory addresses does this number of address lines allow to access?
c) Explain the concept of segmented memory?
d) Which segment contains the executable machine code?
e) Explain the roles of BIU and EU in 8086 mp?
f) Describe the function of 8086 Queue?
g) What are the main differences between the general purpose, index, and pointer registers?
h) Which bit in the status register is set if the result of an instruction is zero?
i) Which bit in the status register is set if the result of an instruction is negative?
j) What are the different addressing modes supported by 8086?
k) Which register points to the offset address of the next instruction?
l) Which register points to the offset address of the top of the stack?
m) What is wrong with MOV [BX], [DI] instruction?
n) How many memory location needed to store a word of information?
o) What would be the offset required to map to physical location 002B3H, if the segment
base address is 0029H?
p) Calculate the physical addresses represented by:
i) 1234H: 0002H ii) 2670H: 2222H
q) Given DS = 0200H, BX = 1234H, and SI = 0020H. Identify the addressing modes used and
calculate the memory address for the following instructions:
i) MOV CX, [BX] ii) MOV AX, [BX + SI + 04H]
r) What is the differences between LEA SI, NUMB and MOV SI, OFFSET NUMB
s) Explain what happens when the PUSH BX instruction executes. Make sure to show
where BH and BL are stored. ( assume that SP = 0100H and SS = 0200H)
t) If DL = 0F3H, and BH = 72H, list the difference after BH is subtracted from DL and
show the contents of the flag register bits

You might also like