main: lw $t0, x # $t0 = x addi $t0, $t0, 4 # $t0 = x + 4 li $t1, 2 # $t1 = 2 mul $t0, $t0, $t1 # $t0 = (x+4) * 2 sw $t0, y # y = (x+4) * 2 li $v0, 0 # return 0 jr $ra .data x: .word 3 # int x = 3; y: .space 4 # int y;