CCE 320 Midterm, Fall 2013

American University of Science and Technology · Computer Organization & Microprocessors · 1 page · Dr. Oussama Tahan

All CCE 320 files
CCE 320 Midterm, Fall 2013, page 1

Stuck on a question? A tutor can walk you through it.

More CCE 320 files

Show the text of this exam
Dr. Oussama Tahan (Beirut) Si As your program is able to count how many ig (the letter’s ‘A’ ASCII code is 0x41). Put this Consider the following code: Movelm RO, 300 sinitialize RO with decimal value 300 Movelm R1, 0x8000 Clear R2 Initialize: © Move (RI), R2 + & Gonbuias th value adtes ©ASv0 ADI R1,4 ;:R1 points now to the next address (current address + 4) INR R2 ; K+) DCR RO JINZ Initialize ;Memory Initialization is finished Movelm RO, 300 Movelm R1, 0x8000 ;Put hexa value 0x8000 in R1 Movelm R352 modifying: Move R2, (R1) ANI R2, 0x01 sresult of ANI is stored in R2 Gor IZ donothing Move R2, (R1) MUL R2, R3 ;multiply R2 with R3.Result in R2 -Move (R1), R2 donothing: ADI DCR