UMBC | CMSC211 |
163 | 162 | 161 | 160 | |
---|---|---|---|---|
0 | 0000 | 000 | 00 | 0 |
1 | 1000 | 100 | 10 | 1 |
2 | 2000 | 200 | 20 | 2 |
3 | 3000 | 300 | 30 | 3 |
163 | 162 | 161 | 160 | |
---|---|---|---|---|
0 | 0 | 0 | 0 | 0 |
1 | 4096 | 256 | 16 | 1 |
2 | 8192 | 512 | 32 | 2 |
3 | 12288 | 768 | 48 | 3 |
Notice the number printed out so that they are aligned on the right side. You must make yours do the same thing. Hint: If the number has two digits and you need to have it moved over four places, output four blanks. You can make that modification by making a new version of PutDec that will always output six characters.
If you want to go from 15 to 0, instead of the way I have it, you may do so. Do both for five percent extra credit.
;; ;; Filename: 6789prj3.asm ;; Name: Ima Student ;; SSAN: 6789 ;; Date: 8 Oct 2002 ;; Course: CMSC-211 ;; ;; Description (What are the program requirements): ;; ;; Analysis (five parts): ;; Input: ;; Output: ;; Formulas: ;; Constraints: ;; Assumptions: ;; ;; Design: (Your psuedocode goes here. Must be detailed) ;; ;; Notes: (As needed, such has how to assemble, if ;; it is necessary to do anything other than ;; ml 6789prj3.asm util.lib) ;;