CPTR-215 Assembly Language Programming HW#10 due Moday
Read chapter 6. Begin reading chapter 7.
Design an assembly program that reads characters one by one from an array of bytes
located in the code area of memory (ROM) and stores them in an array
located in the data area of memory (RAM). The string of ASCII encoded characters in
the code area shall be: Hello World (11 characters). The byte after d in world, i.e. the
12th byte in the string, shall have a numeric value of zero (this is the ASCII
null character) and denotes the end of the string. The loop reading characters
from the data area shall cease reading characters when it finds the null
character. Thus while the character string to use has been defined,
your program will be written to read a string of any length other than zero.
And since a string of variable length could be read, keep a count (in register zero) of
how many characters are actually read.
After designing the program (meaning create an NS diagram or flow chart),
write the assembly code. Assemble and test using the simulator and
debugger. You can step through the program watching the contents of
registers and also watch the data memory (RAM) where you are placing the
characters (I'll demonstrate looking at memory in class Friday).
Use a copy of shell.s renamed in this format:
hw10_lastname.s where lastname is your last name. Note the underscore
between hw10 and your name, don't use a space.
Email me a copy of your source file (.s) file and print a hardcopy
to turn in Monday along with your design documentation. Report if it
worked or not via a note in your email and write it on your hardcopy as well.
Larry Aamodt PhD, PE
Professor of Engineering and Computer Science
Walla Walla College
Contact:
via email: AamoLa (at) wallawalla.edu
via phone: x2058