What the funk!? PSP 16 bit storage method - please help!!!!!

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
jubber
Posts: 6
Joined: Thu Jan 19, 2006 5:14 pm

What the funk!? PSP 16 bit storage method - please help!!!!!

Post by jubber »

After a lot of swearing and cursing I've noticed that 16bit pixels are stored on the psp in lo-byte hi-byte order - this is for real? Really annoyed the skd blit sample does not mention this. Have I made a mistake somewhere or does the following genuinely happen? - Write
0xFACE to a short in memory and it will store it as 0xCEFA?

Some help - any help - with the 16 bit format on the psp would really be appeciated. Tried asking this question on a number of threads, but apparently nobody around to respond.
bulb
Posts: 50
Joined: Thu Jan 19, 2006 10:59 pm

Post by bulb »

jubber,

PSP is little-endian system, the same as Intel systems. This is opposite to the network or Unix big-endian system.

Look at Wiki or Webopedia for more info about endianess.

Best regards,
Bulb
jubber
Posts: 6
Joined: Thu Jan 19, 2006 5:14 pm

Thanks

Post by jubber »

Oh monkey pants - so it stores bytes big endian (msb is on the left) but bytes within shorts or ints little-endian. Thanks for the tip - I suppose one plus side is targas are already in the right format for memory.

Cheers,

jubber

God I hate little endians. With their tomahawks and their facepaint. Little bastards.
Post Reply