This preview shows pages 1–7. Sign up to view the full content.
1ECE 3140/CS 3420Computer OrganizationSi2009Spring 2009ProceduresECE3140/CS3420Announcements•Homework 1 is done– Congratulations on very few CMS problems!• Project 1•Project 1– Due Tue., Feb 10 at 10:00pm – Don’t wait until the last minute to post to CMS!– Problems in convert.s have been fixed•You will need and ECE account on amdpool to do the projects for this classECE3140/CS3420– – Please do this now, notFeb 10!2
has intentionally blurred sections.
Sign up to view the full version.
2Hennessy and Patterson•Read Chapter 1 – 1.1-1.9• Read Chapter 2Read Chapter 2 – 2.1 through 2.14, –Skim B.1,B.2, B.10• Read– Appendix B.6– 3.1 through 3.2– MIPS Calling Convention Document (website)ECE3140/CS3420MIPS Calling Convention Document (website)•Read (for Tuesday)– Appendix B.1-B.5– Notes on Programming in C (website)3Procedure Calls & ReturnsProcedure Calls•Jump to startmain:la $4, sMNumspaces:li $2, 0lbu $8 0($4)•Parameters•Register ManagementProcedure Returns•Return from end•Return values•Register Managementjal NumSpacesori $4,$2,0jal putsMlbu $8, 0($4)jr $31Mputs:lbu $8, 0($4)jr $31MECE3140/CS3420MIPS support•Very little HW support•Mostly Convention•Caller/Callee Contractli $4, 0jal exitMexit:syscallM4