		.file	"init.s"
	
		.text
		.align	2
		.globl _init
		.extern end
	
_init:
		.set	noreorder

		# set uart
		la	$26, sys_uart_baud
		addiu	$27, $0, baudrate
		sb	$27, 0($26)
		
		# set stack pointer 
		la $sp, end

		# jump main
		la $26, main
		jalr $26

_terminate:
		nop
		j		_terminate
		nop
		
		.set	reorder
