This preview shows page 1. Sign up to view the full content.
Unformatted text preview: restore them Case 2: Complex In sub2.s Routine Use S-Regs freely, Read A-Regs but do not change, Set R-Regs, and If using M-Regs then save and restore them main.s sub1.s sub2.s In sub1.s Routine Save/Restore M-regs, Save/Restore A-Regs, and Use M-Regs In main.s Routine Use M-Regs freely, Set A-Regs and assume unchanged after call, Read R-Regs - move to M-Regs after call, and If using S-Regs then save them before call...
View Full Document
This document was uploaded on 11/02/2011 for the course ECE 433 at Boise State.
- Fall '10