Quiz2_sample1 - BILKENT UNIVERSITY Department of Electrical...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
BILKENT UNIVERSITY Department of Electrical and Electronics Engineering EEE212 Microprocessors QUIZ 2 17-03-2010 Sections 1 and 4 OPEN BOOK, CLOSED NOTES, NO CALCULATORS Duration: 35 minutes Surname : Name : ID Number : Section : Signature : Question 1 (50 pts) : Question 2 (50 pts) : TOTAL :
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
1) (50 pts) Assume that there are 256 bytes of data at the 8051 internal ROM memory locations between the addresses 0500H and 05FFH. Write a subroutine named COPY that checks these bytes and copies the values larger than 127 to the external RAM consecutively (in order), starting from the address 0500H. Consider all 256 byte values as unsigned numbers, and do NOT use the CJNE instruction. Ex: Assume that the first 5 bytes in the ROM in the given address range are as follows (in Hex): 1A, 55, 30, F7, 17. The program will copy 1A to the address 0500H of the external RAM and F7 to the address 0701H, it will skip the other three bytes since they are smaller than 127. MOV DPTR, #0500H
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 3

Quiz2_sample1 - BILKENT UNIVERSITY Department of Electrical...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online