
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

1 of 1
Boise State University Department of Electrical and Computer Engineering ECE 332 Microprocessors Quiz 2 โ September 19, 2007
Name: ______________________________
The return address (pc+4) is saved to r31 (or ra).
Assuming that VALUES contains the memory address of two 32-bit values
movia r5,VALUES #get the values ldw r6,0(r5) ldw r7,4(r5) #restore them stw r7,0(r5) stw r6,4(r5)
movia r5, LED_ADDRESS movi r6,0x8 #write eight to LED stwio r6,0(r5)
movia r7,SWITCHES_ADDRESS ldwio r8,0(r7)