Name: King Fahd University of Petroleum & Minerals ميحرلا نمحرلا الله مسب

advertisement
‫بسم هللا الرحمن الرحيم‬
Name:……………………………………
ID:…………………………………………….
Quiz 5
King Fahd University of Petroleum & Minerals
EE390
Assume that the memory contents are as shown below and assume that it is zero for in-between the
given physical addresses of the table and that all the flag bits are initially reset. Assume also that
each of the questions is independent of the others.
Register contents
AX = 0100H,
BX = 0200H,
Memory Memory
addresses (PA) contents (Hex)
DS:0030 : 14
DS:0204 : 12
CX = 0300H,
DS:0050 : 32
DX = 0400H,
DS:1234 : E4
SI = 0030H,
SS:0010 : D7
DI = 0050H,
DS:0233 : 9C
BP = 0010 H
DS:4332 : 02
SP = 0006 H
DS:0256 : B8
1.
Write a program to subtract two decimal numbers (subtract 4D from 11D) and store
the result in [BP] memory location.
2.
Write a program to multiply two unsigned data of F3H and E5H.
3.
Write a program to multiply two signed data of -3H and 5H.
4.
Write a program to divide the unsigned data of: 10H by [4332H].
5.
Write a program to divide the signed data of: -FH by 5H.
6.
Write a program to convert the byte content of CL into a word and store the result in
CX register. Convert this word into a double word.
Download