1
0
Fork 0
forked from koniifer/ableos

:3 Breaky

This commit is contained in:
able 2024-05-11 15:21:07 -05:00
parent a3c4b878b2
commit ebefc85566

View file

@ -0,0 +1,38 @@
arm_fb_ptr := ||:int return 100;
x86_fb_ptr := ||:int return 100;
check_platform:= ||: int {
return x86_fb_ptr();
}
set_pixel := |x: int, y: int, r: u8, g: u8, b: u8|: int := {
pix_offset := y * width + x;
return 0;
}
main := ||: int {
fb_ptr := check_platform();
width := 1024;
height := 768;
x:= 0;
y:= 0;
loop {
if x <= height + 1 {
set_pixel(x,y,100,100,100);
x= x + 1;
} else {
set_pixel(x,y,100,100,100);
x := 0;
y = y + 1;
}
if y == width {
break;
}
}
return 0;
}