| Main | Assembly Programming | Input/Output | Memory | Computer Architecture | Advanced Topics |
COUNT equ 10 TUTOR equ 228 PROGRAM equ $1000 org PROGRAM move.w #0,d0 ;Point A move.w #COUNT,d1 LOOP subq #1,d1 addq #1,d0 tst d1 bne LOOP move.w d0,RESULT move.w #TUTOR,d7 trap #15 RESULT ds.w 1 endSpecify addresses for each instruction & for RESULT in the boxes below.
| Address starting at point A |
|---|
|   |
|   |
|   |
|   |
|   |
|   |
|   |
|   |
|   |
|   |
Either of the following is correct. The second if you used absolute short addressing for RESULT
| Address starting at point A |
|---|
| $1000 |
| $1004 |
| $1008 |
| $100A |
| $100C |
| $100E |
| $1010 |
| $1016 |
| $101A |
| $101C |
| Address starting at point A |
|---|
| $1000 |
| $1004 |
| $1008 |
| $100A |
| $100C |
| $100E |
| $1010 |
| $1014 |
| $1018 |
| $101A |