1
0
Fork 0
forked from AbleOS/ableos
ableOS_v1Change/repbuild/holeybytes/limine_framebuffer_driver.rhai
2023-11-03 08:25:31 -05:00

29 lines
672 B
Plaintext

// Change and add to this as you see fit.
// The STD and even syscalls are still in flux.
// Do your best to avoid adding bad design.
// Use std abstractions if they exist like logging functionality
import "repbuild/hblib/std" as std;
// Define main
fn main(){
std::Info("Starting the limine framebuffer driver.");
// Color
li64(r1, 0xffffffff);
// iterator
li32(r2, 0);
// count
li64(r3, 12);
// Label here
let start = label();
// Write to the memory
st(r1, r2, 0xFFFF8000C0000000, 1);
// Increment
addi64(r2, r2, 1);
// std::Info("abc");
jltu(r2, r3, start);
// Terminate execution.
tx();
}
main();