Modified src/calc.c

This commit is contained in:
2024-04-24 19:20:02 +02:00
parent 7576cbf6fa
commit 0b153f4571
+10 -4
View File
@@ -1,11 +1,17 @@
#include "stdint.h"
void main() { 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; return;
} }