| |
| | Lab #1 (Site not responding. Last check: 2007-10-20) |
 | | These lines of code are responsible for setting up any arguments passed to the program via a pointer and the envp variable (environment pointer) After executing these instructions, it attemptes to jump to [main] which we had removed, thus causing the error. |
 | | .data.text.globl main main: #addu $s0, $ra, $0 # save return address for later # while normally we would need to save the return address, since we make # no other routine calls from this routine and syscalls don't modify the # $ra register, we don't have to save the $ra. |
 | | # setup the registers $t0-7 and $s0-7 addu $s0, $0, 311 #add the zero register and 311, place the result in $s0 addu $s1, $0, 622 #add the zero register and 622, place the result in $s1 addu $s2, $0, 433 #. |
| cs.wwc.edu /~fortsa/arch/lab1.html (827 words) |
|