mirror of
https://github.com/Tom-on64/kern.git
synced 2026-11-05 02:53:10 +00:00
OS now allocs memory for called files. Slightly improved screen.h
This commit is contained in:
+5
-9
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user