Hello World For PSP : Tutorial [Coding in C++]
Main.c < save this as .c file
Makefile < Save this as Makefile
Compile those code with cygwin or PSPsdk . Cygwin & PSPSDK is a software where it can build c++ project. What you need to do just build it with this command :
Main.c < save this as .c file
//Hello World Program.
#include <pspkernel.h>#include <pspdebug.h>#include <pspcallbacks.h>PSP_MODULE_INFO("Hello World",0,1,1);char var3[15] = " Hello World ";int main() {pspDebugScreenInit();pspDebugScreenClear();SetupCallbacks();pspDebugScreenPrintf("%s\n", var3);sceKernelSleepThread();return 0;}
Makefile < Save this as Makefile
#one-line commentTARGET = helloOBJS = main.oCFLAGS = -O2 -G0 -WallCXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rttiASFLAGS = $(CFLAGS)#EXTRA_TARGETS is the output file#PSP_EBOOT_TITLE is the EBOOT's nameEXTRA_TARGETS = EBOOT.PBPPSP_EBOOT_TITLE = Hello WorldPSPSDK=$(shell psp-config --pspsdk-path)include $(PSPSDK)/lib/build.mak
Compile those code with cygwin or PSPsdk . Cygwin & PSPSDK is a software where it can build c++ project. What you need to do just build it with this command :
makeSave it as Build.bat and then run it . The file should be compile to EBOOT.PBP. Create a new folder and rename it as hello world sdk. Copy and paste EBOOT.PBP file to a new folder that you just create. Run it on your PSP and boom! Hello World !
pause
Comments
Post a Comment