ECE243 Practice Question Website


Main Assembly Programming Input/Output Memory Computer Architecture Advanced Topics

Assembly Programming Questions





Question 10

Fill in the blank areas in the following table. The memory accesses column should include all memory accesses to get the instruction, the operands and to store the result. Assume each memory access can transfer at most one word.

Intruction # of words in entire instruction # of memory accesses
add.w d0,1550    
add.w #1550,d0    
addq.w #3,d2    
move.b (a2),(a3)+    

Answer

Intruction # of words in entire instruction # of memory accesses
add.w d0,1550 3 (or 2)* 5 (or 4)*
add.w #1550,d0 2 2
addq.w #3,d2 1 1
move.b (a2),(a3)+ 1 4

* Bracketted values for short addressing