{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

MidtermFall2007 - BILKENT UNIVERSITY Electrical and...

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

View Full Document Right Arrow Icon
16-11-2007 BILKENT UNIVERSITY Electrical and Electronics Engineering Dept. EEE212 Microprocessors Midterm Open TextBook No Calculators Use the boxes provided for your answers! Use comments for readability , otherwise the programs will be partially graded! Duration: 1 ¾ hours Surname:_______________________________________ Name:_________________________________________ ID-Number:___________________________________ Signature:________________________ Q1 (25 points) Q2 (25 points) Q3 (25 points) Q4 (25 points) TOTAL
Image of page 1

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

View Full Document Right Arrow Icon
Q1) [25 pts] We have a string embedded in the on-chip ROM at the ROM location 0300h. The string terminates with the null character 00h (string can be zero characters wide) and the string’s length does not exceed 99d characters. We want to calculate the occurences of each capital letter in the string. Write a procedure with the name FIND for which as a result the number of occurences of the letter ‘A’ should be written at RAM location 41h as a BCD, of the letter B at RAM location 42h again in BCD and so on. The list of the capital letters and their ASCII codes are given in Figure 0-1 in the textbook. Assume that the RAM locations 41h-5Ah are clear when the procedure
Image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern