OS now allocs memory for called files. Slightly improved screen.h

This commit is contained in:
2024-04-26 11:50:37 +02:00
parent 2b7426b88f
commit c3d2ccd90d
11 changed files with 63 additions and 42 deletions
+5 -9
View File
@@ -1,16 +1,12 @@
#include "stdint.h"
#include "screen.h"
__attribute__ ((section ("entry")))
void main() {
uint32_t wait = 0xfffffff;
uint32_t* vidmem = *(uint32_t**)(0x5000 + 40);
for (uint32_t x = 200; x < 400; x++) {
for (uint32_t y = 200; y < 400; y++) {
vidmem[y * 1920 + x] = 0x00ffffff;
}
}
uint32_t wait = 0xffffffff;
putc('a');
while (wait--);
return;