# Using global variables by storing them in the data segment directly # Anoop Sarkar # anoop at cs.sfu.ca .data .globl item1 .globl item2 item1: .word 1 item2: .word 12 .text .globl main main: lw $a0, item1 li $v0, 1 syscall lw $a0, item2 li $v0, 1 syscall