Homework 1

As you are aware, we have lab assignments due every week. We also will have several homework assignments this semester, and this is the first. While the labs are directed, the homework assignments present larger problems that you should break down into smaller problems. You should spend some time thinking about and planning your homework solutions before coding them.

Program Description

In this assignment, you are to create an assembly language program to compute the sum for a list of 3 numbers which are internally defined in the data segment of your program. The 3 numbers should actually be characters: use the last 3 digits of your student ID number.

Store the digits as a character string, e.g. "123".

Have your program print "Digits: " followed by the digits, and a new-line character, then "the sum of the values is " followed by the sum (an integer value) and another new-line character.

For example, the digits "123" should have a sum of 6.

For this assignment, you do not have to validate the input. That is, your program should work with any 3 character sequence, such as "abc" or ",(Q". As the saying goes, "garbage in, garbage out".

Notes: