Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // include psp headers
- #include <pspkernel.h>
- #include <pspdebug.h>
- #include <pspdisplay.h>
- // include our callback
- #include "../common/callback.h"
- // configure PSP stuff
- #define VERS 1
- #define REVS 0
- PSP_MODULE_INFO("HelloWorld", PSP_MODULE_USER, VERS, REVS);
- PSP_MAIN_THREAD_ATTR(PSP_THREAD_ATTR_USER);
- // make printing easier on us
- #define printf pspDebugScreenPrintf
- int main(int argc, char** argv)
- {
- // basic init
- setupExitCallback();
- pspDebugScreenInit();
- // while this program is alive
- while(isRunning()) {
- sceDisplayWaitVblankStart(); // wait for vblank
- pspDebugScreenClear(); // reset where we draw
- pspDebugScreenSetXY(0, 0); // reset where we draw
- printf("Hello World!"); // print some text
- }
- // exit
- sceKernelExitGame();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement