Page 1 of 1

Making PsyQ Program Compatible with FreePSXBoot

Posted: May 6th, 2022, 7:45 am
by MottZilla
I thought I'd ask if anything could demonstrate how to make a PS-EXE developed with PsyQ (programmed in C) compatible when booted with the FreePSXBoot exploit. I have used the Builder program for FreePSXBoot and while TonyHax which supports being started that way works fine, my own programs don't start and infact when tested in DuckStation it eventually crashes the emulator.

I can see in the TonyHax source code some functions are called to reinitialize the BIOS and/or Kernel stuff. Unfortunately when i tried to transplant the code into my own program I ran into a road block where it declares some functions in the C header file but then in an assembly source file it creates the code for those functions. When I tried using the asm keyword in my C source file this opcode "li t1, 0x12" would always error on compiling saying illegal addressing mode.

So if anyone can offer some help it would be greatly appreciated. It would be nice if programs create with Psy-Q could launch with the FreePSXBoot exploit.

Edit: I've made some progress, but I haven't identified what exactly breaks things yet.

Edit: It seems like if your program exceeds around 60kb that's when it craps out.

Re: Making PsyQ Program Compatible with FreePSXBoot

Posted: May 9th, 2022, 6:20 am
by Shadow
You'll have to share your code and compilation routines so we can see what you're doing :)