1
0
Fork 0
forked from AbleOS/ableos
ableos-idl/sysdata/programs/fb_driver/src/main.hb
2024-07-06 11:23:44 -05:00

17 lines
339 B
Plaintext

main := fn(): int {
frame_buffer := @as(^u32, @bitcast(18446603339442421760));
color := 0;
loop {
len := 786432*4;
loop if len == 0 break else {
fb := frame_buffer + @as(^u32, @bitcast(len));
*fb = color;
len -= 1;
color += 100;
}
}
return 0;
}