ECE243 Practice Question Website


Main Assembly Programming Input/Output Memory Computer Architecture Advanced Topics

Assembly Programming Questions





Question 2

Consider the following --

		org 	$0B0000
	MyVal 	dc.l 	$123456
	

The 68000 instructions in the following table have sources with the same effective addresses (see the first entry in the table).
move.l MyVal,d0 d0 =
move.w $14(a0),d1 a0 =
move.b (a1)+,d2 a1 =
move.l -(a5),d3 a5 =

a0 = $AFFEA, a1 = $B0000, a5 = $B0004

Given that the effective addresses of the sources are the same, can it be said that d0, d1, d2 and d3 have the same values in their least significant bytes after the execution of the instructions in the table above? Why or why not?

Answer

No

Solution

No – some are bytes/words & only change the last chunk of the register