MidtermFall2007 - 16-11-2007 BILKENT UNIVERSITY Electrical...

Info iconThis 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
Background image of page 1

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

View Full DocumentRight 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
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.

This note was uploaded on 01/09/2012 for the course CS cs464 at Bilkent University.

Page1 / 7

MidtermFall2007 - 16-11-2007 BILKENT UNIVERSITY 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