include serial: "./serial.dsa"
include idt: "./idt.dsa"
include print: "./print.dsa"

dw stack: 0x10000
_init:
    ldw stack, bpr
    mov bpr, spr
	call idt::setup_base
	call idt::setup_io

	call serial::reset

db hello: "Test message, hello world etc etc."
main:
    //lwi hello, rg0
    //push rg0
    //call serial::print
    //pop zero

    // lwi hello, rg0
	// push rg0
	// call print::print
	// pop zero

	//lwi buff, rg0
	//lwi 32, rg1
	//push rg0
	//push rg1

	call serial::readline

	lwi serial::SERIAL_BUFFER, rg0
	push rg0
	call serial::print
	pop zero

	call serial::reset
    hlt
	jmp main
