Translate the following C programs into your programming language. (Note: the first 10 of these programs are just short programs to see if your compiler is doing type checking for function calls and return statements correctly. They should result in syntax errors.) You should compile and run the C program and check if it produces the same answers as code generated by your compiler.
Note: the assumption is that your compiler handled the test programs from Project 5 correctly. Thus, none of these test programs check that local variables are handled correctly. If your Project 5 did not handle local variables, please make sure that you submit the test programs from Project 5 as well.
Note that the MOV instruction does not support memory to memory moves, so you cannot say:
The slides were take from my Fall 2004 CMSC313 class and represent about 5 lectures of materials. You can look at the original lecture notes here. (Click on the topic for a synopsis of what was covered and "actual" to see the slides for that day.)
The short tutorial on using gdb to debug assembly language programs is here.