ECE243 Practice Question Website


Main Assembly Programming Input/Output Memory Computer Architecture Advanced Topics

Assembly Programming Questions





Question 25

The LINK and UNLK instructions are useful for subroutine linkages, but the same operations can be performed using multiple other instructions.
Show how

link.l	a6,#-4
can be done using multiple other instructions.

Answer

		move.l	a6,-(a7)
		move.l	a7,a6
		subql	#4,a7