2024-08-30 10:22:13 -05:00
|
|
|
.{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 {
|
2024-08-29 15:37:49 -05:00
|
|
|
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
|
|
|
}
|