progress on serial and added editor
This commit is contained in:
@@ -1,14 +1,44 @@
|
||||
include serial: "./serial.dsa"
|
||||
include idt: "./idt.dsa"
|
||||
include print: "./print.dsa"
|
||||
|
||||
resb buff: 256
|
||||
|
||||
dw stack: 0x1000
|
||||
_init:
|
||||
ldw stack, bpr
|
||||
mov bpr, spr
|
||||
call idt::setup_base
|
||||
call idt::setup_io
|
||||
|
||||
db hello: "Serial works lol. this took ages and some clanker forgetting to dereference a pointer."
|
||||
db hello2: "hello2"
|
||||
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
|
||||
push zero
|
||||
call serial::read_byte
|
||||
pop rg0
|
||||
//pop zero
|
||||
push rg0
|
||||
call print::print
|
||||
pop zero
|
||||
|
||||
lwi hello2, rg0
|
||||
push rg0
|
||||
call print::print
|
||||
pop zero
|
||||
|
||||
hlt
|
||||
|
||||
Reference in New Issue
Block a user