Integrate all the progress into master #6

Merged
jaby merged 595 commits from ToolBox into main 2025-01-01 13:17:44 +00:00
1 changed files with 13 additions and 0 deletions
Showing only changes of commit 79fdc3a26c - Show all commits

View File

@ -1,11 +1,24 @@
#include <PSX/GPU/gpu_primitives.hpp>
#include <stdio.h>
extern "C" uint32_t __bss_start;
extern "C" uint32_t __bss_end;
extern void main();
namespace JabyEngine {
static void clear_bss() {
uint32_t* bss_adr = &__bss_start;
while(bss_adr < &__bss_end) {
printf("Free: 0x%p\n", bss_adr);
*bss_adr = 0;
bss_adr++;
}
}
// Executes the game
void __no_return run() {
clear_bss();
main();
printf("Stop!!\n");
while(true);