forked from AbleOS/ableos
39 lines
619 B
Plaintext
39 lines
619 B
Plaintext
stn := @use("../../../libraries/stn/src/lib.hb");
|
|
log := stn.log;
|
|
string := stn.string;
|
|
memory := stn.memory;
|
|
buffer := stn.buffer;
|
|
|
|
/*
|
|
service_search := fn(): void {
|
|
// a :=
|
|
|
|
return;
|
|
}
|
|
*/
|
|
|
|
|
|
|
|
main := fn(): int {
|
|
// Create a buffer
|
|
|
|
buffer_id := buffer.create();
|
|
buffer.send_message(buffer_id);
|
|
|
|
memory_pages := memory.request_page(3);
|
|
buffer.receive_message(buffer_id, memory_pages, 4096*3);
|
|
|
|
log.info("abc\0");
|
|
|
|
memory.release_page(memory_pages, 3);
|
|
|
|
|
|
|
|
// todo: abstract this out
|
|
port_str := "\0\{70}\0";
|
|
a := @eca(u8, 3, 3, port_str, 2);
|
|
|
|
|
|
|
|
return 0;
|
|
} |