Search found 13 matches

by maddogjt1
Mon Sep 05, 2005 11:16 am
Forum: PSP Development
Topic: PSP Extentions sort of like DLL's
Replies: 6
Views: 5714

I don't know anything officially about this, but I would assume that sony would not allow anything like this. Any system that allows a user to run unsigned code is s huge security risk for them. The only outside posibility would probably to create some type of virtual machine but even that may pose ...
by maddogjt1
Wed Jul 27, 2005 10:19 am
Forum: PSP Development
Topic: bug in sceGuColorFunc.c
Replies: 1
Views: 1232

bug in sceGuColorFunc.c

It won't build. function in svn (v783) is void sceGuColorFunc(int func, unsigned int color, unsigned int mask) { sendCommandi(216,a0 & 0x03); sendCommandi(217,color & 0xffffff); sendCommandi(218,a2); } but a0 a...
by maddogjt1
Sun Jul 24, 2005 6:06 am
Forum: PSP Development
Topic: How long until ./toolchain.sh completes?!
Replies: 33
Views: 11342

There are four steps to building the psp toolchain and if any one of those fail while using the toolchain.sh script, the entire process has to be restarted. You can partially work around this by building each part of the toolchain seperately, which will allow you to only rebuild that part that faile...
by maddogjt1
Sat Jul 16, 2005 11:31 am
Forum: PSP Development
Topic: Looping with exact timing?
Replies: 9
Views: 2973

I think what you're looking for is sceKernelSleepThread(uint usec) which is accurate to the micro-second i believe
by maddogjt1
Sat Jul 09, 2005 2:04 pm
Forum: PSP Development
Topic: audio sample
Replies: 8
Views: 3248

Speaking of audio, does anybody know if the psp supports any type of midi playback or if there is a decent library out there that would be able to do a midi to wav conversion at load time or real time. If so, I'd be willing to port it and add it to the sdk.
by maddogjt1
Tue Jul 05, 2005 5:27 am
Forum: PSP Development
Topic: Game freezes trying to install exception handler
Replies: 1
Views: 1236

Well, I solved my own problem. By changing the line PSP_MODULE_INFO("MYGAME", 0, 1, 1); to PSP_MODULE_INFO("MYGAME", 0x1000, 1, 1); I was able to get the exception handler installed. Once I did this, I realized that the my exit callback wasn't getting hit when I chose to exit the...
by maddogjt1
Tue Jul 05, 2005 4:53 am
Forum: PSP Development
Topic: Game freezes trying to install exception handler
Replies: 1
Views: 1236

Game freezes trying to install exception handler

I've tried to install an exception handler in my project following the code in the exception handler sample (in SVN), but whenever i run the line pspDebugInstallErrorHandler(MyExceptionHandler); the game freezes and the psp rebooots. I haven't changed anything, so I doubt that it's a bug that I've i...
by maddogjt1
Mon Jul 04, 2005 4:25 am
Forum: PSP Development
Topic: PSP colour not working right... Possible Bit Shift problems
Replies: 9
Views: 4032

it has to do with your RGB16 macro. Instead of taking the five most significant bits of each color, you're taking the five least. You should use

#define RGB(r,g,b) ((((b>>3) & 0x1F)<<10)|(((g>>3) & 0x1F)<<5)|(((r>>3) & 0x1F)<<0)|0x8000)
by maddogjt1
Fri Jul 01, 2005 12:00 am
Forum: PSP Development
Topic: Question about the color space on the PSP
Replies: 10
Views: 4739

the 16bit pixel format is actually ABBBBBGGGGGRRRRR.
by maddogjt1
Mon Jun 27, 2005 11:42 pm
Forum: PSP Development
Topic: Pausing game when home button is pressed?
Replies: 3
Views: 2100

I solved my problem of catching the home key, when home is pressed the key value returned is '65536'. Hope that is what you were looking for maddogjt1.. That partially solves the problem. The problem is that when you bring up the "exit to home" screen, keyboard inupt is suspended to your ...
by maddogjt1
Mon Jun 27, 2005 3:36 pm
Forum: PSP Development
Topic: Pixel format for pgBitBlt call's byte array parameter
Replies: 4
Views: 2444

I believe that it is 16 bpp BGR format XBBBBBGGGGGRRRRR but don't hold me to it.
by maddogjt1
Mon Jun 27, 2005 3:16 pm
Forum: PSP Development
Topic: Pausing game when home button is pressed?
Replies: 3
Views: 2100

Pausing game when home button is pressed?

I have seen many titles that keep running in the background when the home button is pressed. The actual callback created by sceKernelRegisterExitCallback is only called when the exit is selected from the home button but I assume that there is another callback to the main thread that tells it to paus...
by maddogjt1
Mon Jun 27, 2005 3:10 pm
Forum: PSP Development
Topic: Register remap table
Replies: 0
Views: 1340

Register remap table

Since many people have asked about this and I haven't seen a complete list posted, this is how the registers from the ee-gcc toolchain map to the registers in the psp-gcc chain #define zero $0 #define v0 $2 #define v1 $3 #define a0 $4 #define a1 $5 #define a2 $6 #define a3 $7 #define t0 $8 #define t...