You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							27 lines
						
					
					
						
							607 B
						
					
					
				
			
		
		
	
	
							27 lines
						
					
					
						
							607 B
						
					
					
				
 | 
						|
        addi sp, sp, -8
 | 
						|
        sw ra, 4(sp)
 | 
						|
        sw fp, 0(sp)
 | 
						|
        addi fp, sp, 8
 | 
						|
        lw a1, 0(fp)
 | 
						|
        la a0, $.list$prototype
 | 
						|
        beqz a1, conslist_done
 | 
						|
        addi a1, a1, @listHeaderWords
 | 
						|
        jal alloc2
 | 
						|
        lw t0, 0(fp)
 | 
						|
        sw t0, @.__len__(a0)
 | 
						|
        slli t1, t0, 2
 | 
						|
        add t1, t1, fp
 | 
						|
        addi t2, a0, @.__elts__
 | 
						|
conslist_1:
 | 
						|
        lw t3, 0(t1)
 | 
						|
        sw t3, 0(t2)
 | 
						|
        addi t1, t1, -4
 | 
						|
        addi t2, t2, 4
 | 
						|
        addi t0, t0, -1
 | 
						|
        bnez t0, conslist_1
 | 
						|
conslist_done:
 | 
						|
        lw ra, -4(fp)
 | 
						|
        lw fp, -8(fp)
 | 
						|
        addi sp, sp, 8
 | 
						|
        jr ra |