Homework 4, Addition Table.
Short Description:
Write a program that will produce the decimal addition table for numbers 0-9
Goals
When you finish this homework, you should have:
- Demonstrated your ability to create an assembly program that can perform nested loops.
Formal Description
Write a program in assembly that will produce the following table
| + |
0 |
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
| 0
| 0 | 1 | 2 | 3 | 4 | 5 |
6 | 7 | 8 | 9 |
| ...
| ... | ... | ... | ... | ... | ... |
... | ... | ... | ... |
| 9
| 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 |
The table should list all values 0 through 9 on the left column and the sum of the top of the column and left on the row in each cell.
All values in the table should be right alligned using 4 spaces.
You should use - and | for the table borders.
The table should not be hard coded but produced using loops and addition.
Required Files
A single NASM assembly file. In the comments please provide your name, the names of any collaborators, a description of any AI employed and the use to which the AI was put.
Submission
Submit the assignment to the D2L folder homework 4 by the due date.