Embedded Microprocessor Systems Lab discussion

timer Asked: Feb 12th, 2014

Question description

A list of words represented by their ASCII values is stored in memory; the words are of mixed case
(upper and lower). It is desirable to change the case of all the letters in all the words into upper case.
The student does not have knowledge of the number of words in the list before execution time.
The process of converting a lower case character to an upper case character is done by subtracting a
hex value of '0x20' from the lower case character (e.g.: the letter 'b' has a hex value of '0x62', while the
letter 'B' has a hex value of '0x42').
Using the CodeWarrior® environment, write a program that:
• converts a list of ASCII words (byte size) from lower case to upper case
• the list is stored in memory at a location pointed to by two registers – one points to the start of
the list, and the other to the end of the list (see the example below)
• the list includes no punctuations marks or numbers, but does include spaces (these must be
detected, don't convert them to a different character)
• the converted list must be saved starting at another memory location pointed to by another
register (only one address register is required for this)

Tutor Answer

(Top Tutor) Studypool Tutor
School: New York University
Studypool has helped 1,244,100 students
flag Report DMCA
Similar Questions
Hot Questions
Related Tags

Brown University

1271 Tutors

California Institute of Technology

2131 Tutors

Carnegie Mellon University

982 Tutors

Columbia University

1256 Tutors

Dartmouth University

2113 Tutors

Emory University

2279 Tutors

Harvard University

599 Tutors

Massachusetts Institute of Technology

2319 Tutors

New York University

1645 Tutors

Notre Dam University

1911 Tutors

Oklahoma University

2122 Tutors

Pennsylvania State University

932 Tutors

Princeton University

1211 Tutors

Stanford University

983 Tutors

University of California

1282 Tutors

Oxford University

123 Tutors

Yale University

2325 Tutors