.section .reset,"ax",@progbits

# memory segment & size
.extern bootloader

.globl  reset
.ent    reset
.align  2

reset:
.set noreorder
# initializes stack pointer
  la      $27, STACK_BASE 
  la      $26, STACK_SIZE     
  addu    $29, $26, $27

# initializes global pointer
  la      $28, BIOS_BASE

  li      $26, 0x0000FF01
  mtc0    $26, $12

# jumps to main 
  la      $8, bootloader
  j       $8
  nop

.end    reset
.size   reset, .-reset

.set reorder
