# hw2_33.a # home work solution idea for 2.33 #----------------------------------------------------------------------------# .data list: .word 15 22 37 41 str: .asciiz "\n" #----------------------------------------------------------------------------# .text # The main starts here .globl main main: lui $t2, 97 # left "half" of 32 bit number ori $t2, $t2, 43008 # or with right half to form complete number # display the memory location add $a0, $t2, $zero li $v0, 1 syscall # display \n la $a0, str li $v0, 4 syscall #explicit memory addressing - find first item in list lw $a0, 0x10010000 ($zero) # find address in Data Segments li $v0, 1 syscall # halt li $v0, 10 syscall