        .data
newline:
        .asciiz "\n"
myVariable:
        .word 42

        .text
main:   
        # see what the initial value is (should be 42)

        # load the address we want into a register
        la $t0, myVariable

        # get the value, putting it into $t1
        lw $t1, 0($t0)

        # display the value
        li $v0, 1
        move $a0, $t1
        syscall
        li $v0, 4
        la $a0, newline
        syscall

        # set the value to 5
        li $t1, 5
        sw $t1, 0($t0)

        # clear out the register
        li $t1, 0

        # get the value at this place in memory
        lw $t1, 0($t0)

        # display the value
        li $v0, 1
        move $a0, $t1
        syscall
        li $v0, 4
        la $a0, newline
        syscall

        # exit the program
        li $v0, 10
        syscall
        
