forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Tyranid Fire Demo

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
steviedisco



Joined: 09 Jun 2009
Posts: 3
Location: London

PostPosted: Tue Jun 09, 2009 11:02 pm    Post subject: Tyranid Fire Demo Reply with quote

Hi everyone,

I'm new to these forums, so please be gentle.

I've been learning MIPS assembly with a view to getting some simple demos up and running on the PSP (plasmas and suchlike).

I'm not intending to do any serious development with assembly as I realise it would be too much hard work and much easier/quicker to develop in C/C++.

But anyway, I'd like to give it a go to see if I can put my new assembly skills to good use.

So - as far as I can see, the only available example source code is Tyranid's fire demo. Now, I have read through the source, compiled it successfully and pretty much understand what it is doing, apart from the finer points of the fire-generating code itself.

The problem is, I can't get it to run on my PSP. I have the latest version of the firmware AFAIK (5 or so).

Is this because the syscall addresses are different from firmware to firmware? Is this the same thing as NIDs? (I don't know what that refers to). I understand that something interesting happens to them after a certain firmware version.

I've also tried stripping out everything from the hello world example, compiling it and disassembling the output using PRXTool. I generate a file which is several hundred Kb long, and is very difficult (and somewhat fruitless) to sift through.

So, has anyone got the demo to run successfully, and any suggestions as to what I am doing wrong.

I'd really like to get a foot in the door with the demo as I'm sure I can run with it once I do.

I'd like to create some well-documented example source code so others don't have to struggle to get assembly code running like I have.

Many thanks,
Back to top
View user's profile Send private message
jojojoris



Joined: 30 Mar 2008
Posts: 261

PostPosted: Tue Jun 09, 2009 11:44 pm    Post subject: Reply with quote

To run it on your psp you have to use Custom firmware or make use of an HEN (homebrew enabler) to run your own programs. If you have ps firmware 5.03 you can use the recently discovered ChickHEN. If you have 5.50 you have to downgrade using a Pandora battery. But i am not going to tell you how you should use it because a simple google search usually enough to get that information.

Sony doesn't want people to create their own programs in the psp. That's why you have to instyall custom firmware in your psp which enebles you to run your own code.
_________________
Code:
int main(){
     SetupCallbacks();
     makeNiceGame();
     sceKernelExitGame();
}
Back to top
View user's profile Send private message
steviedisco



Joined: 09 Jun 2009
Posts: 3
Location: London

PostPosted: Tue Jun 09, 2009 11:51 pm    Post subject: Reply with quote

I should have said, I do have custom firmware on it - I used a pandora battery to do it. I have had plenty of homebrew stuff working, such as the samples included with the PSPSDK but I can't get the ASM fire demo working.
Back to top
View user's profile Send private message
sauron_le_noir



Joined: 05 Jul 2008
Posts: 229

PostPosted: Wed Jun 10, 2009 12:02 am    Post subject: Reply with quote

Steve the firedemo program is for a kernel 1.0 or 1.5 only it haven't be ported to firmware > 1.50.

What you can do is just a simple hello world program in c and ask gcc
to generate for you the assembler file, so you can study him
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group