akern-gkgoat-fork/sysdata/programs/fb_driver/src/main.hb

19 lines
380 B
Plaintext
Raw Normal View History

.{log, memory, string, buffer} := @use("../../../libraries/stn/src/lib.hb")
2024-07-19 05:47:59 -05:00
2024-06-14 11:48:53 -05:00
main := fn(): int {
buffer_id := buffer.create("XGraphics\0")
memmap := memory.request_page(1)
x := 0
loop {
msg := buffer.receive_message(buffer_id, memmap, 0)
if msg != 0 {
log.info("Hello, Framebuffer!\0")
}
loop if x == 4096 {
*(memmap + x) = 0
x += 1
}
x = 0
}
2024-07-19 08:53:45 -05:00
return 0
2024-07-20 12:54:58 -05:00
}