#-------------------------------------------
# Basics - Labels and Sections
# Ported by: Noah Gergel
# Last updated: May 5 2020
#-------------------------------------------

# Start the data section.
.data

# Allocate two bytes and give them labels.
exampleLabel1:
    .space 1

exampleLabel2: .space 1

# Start the text section.
.text

# This starts execution at the following line.
foo:
    add   a0, zero, zero        # Foo starts here.
    jalr  zero, ra, 0           # Foo ends here.

# This starts execution on the same line.
bar:    add   a0, zero, zero    # Bar starts here.
        jalr  zero, ra, 0       # Bar ends here.

# This starts execution many lines later.
baz:


    add   a0, zero, zero        # Baz starts here.
    jalr  zero, ra, 0           # Baz ends here.
