go to previous page   go to home page   go to next page hear noise

Answer:

You would soon run out of registers.


First node

Three Node List Start

Let us first look at creating the first node. This is the same as before:

main:    
        # create the first node 
        li      $v0,9             # allocate memory
        li      $a0,8             # 8 bytes
        syscall                   # $v0 <-- address
        move    $s1,$v0           # $s1 = &(first node)
        
        # copy the pointer to first
        sw       , 
        
        # initialize the first node
        li      $t0,1             # store 1
        sw      $t0,0(  )        # at displacement 0

QUESTION 8:

You've done it once. You can do it again: fill in the blanks.