Debugging with spim simulator
-----------------------------

1. Put a break point in your program code.
   In the .text segment, define break-point 1. 

      .text
      .globl b1
      

2. In your code, put the break-point label.
   Example, you want to check the value of register $a0
   
      li $a0, 10       # store 10 into a register
      b1:              # program will stop here to check register value.


3. Run your program like this.
   
   spim
   (spim) load "myprogram.s"
   (spim) breakp b1
   (spim) run
   (spim) print $a0
   
          You will see the value in register $a0
   
   (spim) print_all_regs
   
          You will see all register values