mirror of
https://github.com/Tom-on64/kern.git
synced 2026-11-03 18:22:22 +00:00
Modified src/calc.c
This commit is contained in:
+10
-4
@@ -1,11 +1,17 @@
|
||||
#include "stdint.h"
|
||||
|
||||
void main() {
|
||||
int wait = 0xfffffff;
|
||||
uint32_t wait = 0xfffffff;
|
||||
|
||||
unsigned int *vidmem = *(unsigned int**)(0x5000 + 40);
|
||||
uint32_t* vidmem = *(uint32_t**)(0x5000 + 40);
|
||||
|
||||
vidmem[8000] = 0x00ffffff;
|
||||
for (uint32_t x = 200; x < 400; x++) {
|
||||
for (uint32_t y = 200; y < 400; y++) {
|
||||
vidmem[y * 1920 + x] = 0x00ffffff;
|
||||
}
|
||||
}
|
||||
|
||||
while (wait != 0) wait--;
|
||||
while (wait--);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user