# Chapter 15: Template file for the PCSpim simulator # -------------------------------------------------- # This file can be used to write all the programs in PCSpim # NAME: # TA's NAME: # DESCRIPTION: .data # data items, i.e. all initialized and # non-initialized items go in here .text .globl main # declaration of main as a global variable main: # your main subroutine code goes in here # the last 2 lines of main li $v0, 10 # syscall for exit syscall # exit your code # end of main # any subroutines may be inserted here:... # END OF PROGRAM (leave this line here)