1
0
Fork 0
forked from AbleOS/ableos
ableos-idl/sysdata/programs/tests/src/main.hb
2024-07-07 08:35:07 -05:00

20 lines
439 B
Plaintext

stn := @use("../../../libraries/stn/src/lib.hb");
log := stn.log;
string := stn.string;
memory := stn.memory;
buffer := stn.buffer;
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);
return 0;
}