ECE243 Practice Question Website


Main Assembly Programming Input/Output Memory Computer Architecture Advanced Topics

Assembly Programming Questions





Question 24

What will be the contents of register d0 when the nop instruction is executed? [See pg 767 in the textbook for a description of dbra if you don’t know what it is]

		move.l	#0,d0
		move.l	#2,d4
	LOOP 	addq.l	#3,d0
		dbra	d4,LOOP
		nop
	

Answer

d0 = 9