0% found this document useful (0 votes)
114 views3 pages

Sheet 2

This document is a study sheet for a microprocessors course covering memory segments, physical addressing, and addressing modes. It provides 17 review questions on topics such as memory segmentation, physical and logical addressing, stack operations, and identifying addressing modes in assembly language instructions. The questions cover concepts like calculating physical addresses based on segment registers and offsets, explaining stack operations, determining addressing modes, and more.

Uploaded by

Mohamed Alfarash
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)
114 views3 pages

Sheet 2

This document is a study sheet for a microprocessors course covering memory segments, physical addressing, and addressing modes. It provides 17 review questions on topics such as memory segmentation, physical and logical addressing, stack operations, and identifying addressing modes in assembly language instructions. The questions cover concepts like calculating physical addresses based on segment registers and offsets, explaining stack operations, determining addressing modes, and more.

Uploaded by

Mohamed Alfarash
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/ 3

1

University of Alexandria
Faculty of Engineering
Division of Communications & Electronics

Subject Name: Microprocessors Lecturer: Dr.Nayera Sadek


Academic Year: 2016 – 2017 Assistants: Khaled Essam

Third Year – Semester 1

SHEET 2 Memory Segments, Physical Addressing, and Addressing Modes

1-Review questions:

a) How much memory can be active at a given time in the 8086/8088 microprocessor?
b) Which part of the memory address space is used to:
1-Store instruction of a program?
2-Store the data used by the program?
3-Store temporarily data?

2- Calculate the physical address for each of the following cases:


a) CS = 2000H, IP = 1000H
b) SS = 1234H, SP = 0100H
c) DS = 1000H, BX = 0010H
d) The memory address 0100:1234H

3- Assume that BX = 4F56H, SP = 0100H and SS = 0200H. Explain what happens when the
PUSH BX is executed.
4- Suppose that DS = 0200H, BX = 0200H and DI = 0300H. Determine the data memory
address accessed by each of the following instructions:

a) MOV AL, [2000H]


b) MOV AL, [BX]
c) MOV [DI], AL

5-If CS=24F6H and IP=634AH, find:


a) The logical address
b) The physical address
c) The lower range of the code segment
d) The upper range of the code segment

6-Assume memory locations of the following contents:DS:6826=48 and DS:6827=22.Show


the content of BX after the execution of the instruction MOV BX,[6826].

7-If SS=3500H and SP=FFFEH, calculate:


a) The physical address of the stack
b) The logical address of the stack
2

c) The lower range


d) The upper range

8- If CS=FFFFH, find the physical address of the lower range and upper range of the code
segment.

9- If SS=0C00H and SP=FF00H, how many words of data are currently held in the stack if
SP=0000H at the start of a certain program?

10- State whether the following statements are true or false:


a- To make full use of stack, we initialize SP=0000H.
b- Code segment can be overlapped with Extra segment.
c- Since there are four segments in the memory so the size of each one is calculated by
dividing the total memory by four.
d- All registers can be saved into stack.
e- The stack is a FIFO memory.

11-If AX=3245H, BX=5632H, CX=672BH, CS=2000H, SI=62F4H, find the result of each
line of the following program :( the memory map is shown below)
a-MOV DS,AX
b-MOV SI,100H
c-MOV BX,04H
d-ADD AX, [SI]
Memory location data
32557H 2DH
32556H 24H
32555H 3CH
32554H 8BH
32553H 79H
32552H 6FH
32551H 6AH
32550H 34H

12- If AX=0000, BX=0010, CX=0020, DX=3034, CS=1200, DS=1000, ES=1030, SS=1060,


BP=0040,SP=0400, DI=0060, SI=0050, IP=0100, Find:

a-start and end of each segment.


b-physical address of top and bottom of stack.
c-how many bytes are pushed to stack.
d-physical address of the next instruction.

13- Convert the following decimal numbers to IEEE-754 short and long-form real numbers:
a) 10
b) - 11
c) 101.125
d) – 65.0625
3

14- Identify the addressing modes, the source, and the destination operands in the following
instructions:

a) MOV DL, BL
b) MOV AX, 00FFH
c) MOV [DI], AX
d) MOV DI, [SI]
e) MOV [BX] + XYZ, CX
f) MOV [DI] XYZ, AH
g) MOV [BX][DI]XYZ, AL

15- Identify the addressing modes, the source, and the destination operands in the following
instructions:
a)MOV AX,CX
b)MOV AX,1234H
c)MOV AL,’A’
d)MOV AL,[200H]
e)MOV [300H],BL
f)MOV [SI],BX
g)MOV [BX+10H],AX
h)MOV CX,[BP]+98H
i)MOV [BP][DI],AH
j)MOV AX,[DI][SI]
k)MOV BX,[SI+20][BP]
l)PUSH CX
r)POP CS

16) Given that: DS = 1000H, SS = 2000H, BP = 1000H, DI = 0100H and LABEL = 1234H.
Determine the data memory address and the addressing modes for each of the following
instructions:

a) MOV AL, [BP][DI]+LABEL


b) MOV CX, [DI]
c) MOV DX, [BP]

17) Given that: DS = 1100H, BX = 0200H, LIST = 0250H and SI = 0500H. Determine the
data memory addresses and the addressing modes for each of the following instructions:

a) MOV LIST[SI], DX
b) MOV BL, [BX][SI]+LIST
c) MOV BH, [BX]+LIST

You might also like