Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
3 views1 page

MP Butunleme

Download as pdf or txt
Download as pdf or txt
Download as pdf or txt
You are on page 1/ 1

T.C.

MERSİN ÜNİVERSİTESİ
MÜH. FAK. BM BÖLÜMÜ
2019-2020 EĞİTİM-ÖĞRETİM YILI BAHAR DÖNEMİ
CE308 MICROPROCESSORS BUT. SINAV SORULARI

Sınav Tarihi: 07. / 07. / 2020. Saati: 13 : 00

Ad Soyad: Imza: Numara:


At home exam; plagiarism is intolerable
Duration: 2 hours Answer all questions Total points: 100

Question 1: [15 pts.]


Give the temporal contents of registers AX, BX, CX, and DX when the below code segment is executed.

VALUES DB 1,4,3,2,5
MOV AX,1d00h
LEA DI,VALUES
XOR BX,BX
MOV AH, [DI+BX]
MOV CX,4
BACK: INC BX
SUB AH,[DI+BX]
DEC CX
JNZ BACK
SHR BX,1
MUL BX

Question 2: [35 pts.]


Develop an x86 assembly program that calls a procedure CapProc that capitalize the first letter
of every word and make the remaining letters of the word small (title format) of source string at
memory location SrcStr and move it to memory location DstStr. Then, the program uses a
macro PrtMac that uses int 21h to print the output string to console.

Hint: The code could contain:


--
SrcStr db ‘ad SOyAD midTerM=75 LAB=75’,# ; use your real data with mixed letters and terminated by #
DstStr db 64 dup(#) ; to be found by program(should be:’ Ad Soyad Midterm=75 Lab=75’,#
--

Question 3: [15+15+20 pts.]


Assuming an Intel 8088 microprocessor based system with memory chips, 4 input switches and
three seven segment displays (SSDs).
a) Show the memory map with 512Kx8 RAM using 128Kx8 RAM chips starting at address
80000H.
b) Demonstrate how the 8088 microprocessor will be connected to three SSDs using
82C55 at addresses D000H, D001H, D002H and D003H for programming, and how the
microprocessor will be connected to the four switches using 74LS244 at addrress
D004H.
c) Write a program to read the binary number formed by the previous four switches and
display the equivalent hexadecimal number on one SSD and the binary coded decimal
(BCD) number on the other two SSDs. For example, if the switches form the number
1101, the first SSD should display E and the other two SSDs should display 13, i.e.,
(1101)2=(E)16=(13)10=(00010011)BCD . Assume what you may need.

(Good luck)

MEÜ.EÖ.FR-212/01 Sayfa 1/1 Yayın Tarihi : 08.04.2011

You might also like