How to call another application

General Programming help in C, C++ or ASM, Compiling / Debugging, and R3000A Central Processing Unit (CPU) information
Post Reply
User avatar
earlyProg
Interested PSXDEV User
Interested PSXDEV User
Posts: 6
Joined: May 16th, 2013, 3:44 am
Skype: alexcorporation3
Location: Italy

How to call another application

Post by earlyProg » June 8th, 2013, 12:54 am

I want to call another application (.exe) . How i do this ?
Yes, I am.

User avatar
t0rxe
C Programming Expert
C Programming Expert
Posts: 140
Joined: December 19th, 2012, 8:08 pm
IRC: t0rxe
Motto: /\OX[]
PlayStation Model: SCPH-5502
Location: Australia

Re: How to call another application

Post by t0rxe » June 8th, 2013, 1:12 am

Learn from Sony's examples. They have many of these examples on executing other PS-EXE's off of the CD-ROM (or from RAM). We can't keep answering all your simple questions. You need to be able to learn yourself :)

If you're completely stuck and frustrated, I'll make an example for you anyway.
The lesson I have learnt over the years is to never take the easy way out :naughty
"Nostalgia isn't a big enough word to describe the PlayStation from my eyes"

User avatar
Orion_
Legendary Programmer
Legendary Programmer
Posts: 228
Joined: August 13th, 2012, 2:48 am
I am a: Programmer
PlayStation Model: Net Yaroze
Location: France
Contact:

Re: How to call another application

Post by Orion_ » June 8th, 2013, 2:24 am

I have a function called System_LoadExecutable in my psx dev library, here it is:
ResetGraph(0);
StopCallback();
_96_init();
LoadExec("cdrom:\\YOURFILE.EXE;1", 0x801ffff0, 0);
Retro game development on Playstation and other consoles http://orionsoft.free.fr/

User avatar
New Nova
Curious PSXDEV User
Curious PSXDEV User
Posts: 17
Joined: October 27th, 2018, 8:48 am
I am a: Student in IT, Artist
Motto: Try and retry.
PlayStation Model: SCPH-1001
Want to Find: Tutorials
Looking to: Share some tests
Location: France

Re: How to call another application

Post by New Nova » October 27th, 2018, 8:59 am

I love to find tricks here :)
MY PONG IS NOT READY

User avatar
New Nova
Curious PSXDEV User
Curious PSXDEV User
Posts: 17
Joined: October 27th, 2018, 8:48 am
I am a: Student in IT, Artist
Motto: Try and retry.
PlayStation Model: SCPH-1001
Want to Find: Tutorials
Looking to: Share some tests
Location: France

Re: How to call another application

Post by New Nova » October 27th, 2018, 10:04 pm

RE !
I need some informations about System_LoadExecutable ORION. Because I tried to run an Exec by pressing "X", but all that I have is a black screen in ePSXe.
Can you help me out ?
MY PONG IS NOT READY

User avatar
gwald
1997 Yaroze Enthusiast
1997 Yaroze Enthusiast
Posts: 256
Joined: September 18th, 2013, 8:44 am
I am a: programmer/DBA
PlayStation Model: Net Yaroze
Location: Australia
Contact:

Re: How to call another application

Post by gwald » October 27th, 2018, 11:06 pm

Might help if you post code, but I would look at what the exe needs in RAM and where and obliviously where you're loading the exe.

User avatar
New Nova
Curious PSXDEV User
Curious PSXDEV User
Posts: 17
Joined: October 27th, 2018, 8:48 am
I am a: Student in IT, Artist
Motto: Try and retry.
PlayStation Model: SCPH-1001
Want to Find: Tutorials
Looking to: Share some tests
Location: France

Re: How to call another application

Post by New Nova » October 27th, 2018, 11:48 pm

You have the full code and exec (the HI.EXE is the HELLO WORLD Tutorial)
pong.zip
You do not have the required permissions to view the files attached to this post.
MY PONG IS NOT READY

User avatar
New Nova
Curious PSXDEV User
Curious PSXDEV User
Posts: 17
Joined: October 27th, 2018, 8:48 am
I am a: Student in IT, Artist
Motto: Try and retry.
PlayStation Model: SCPH-1001
Want to Find: Tutorials
Looking to: Share some tests
Location: France

Re: How to call another application

Post by New Nova » October 28th, 2018, 2:48 am

The "HI.EXE" is in the same folder. I tried just "System_LoadExecutable("HI.EXE");" and "System_LoadExecutable("C:\psyq\projects\pong\HI.EXE");", but I always have a black screen.
MY PONG IS NOT READY

User avatar
gwald
1997 Yaroze Enthusiast
1997 Yaroze Enthusiast
Posts: 256
Joined: September 18th, 2013, 8:44 am
I am a: programmer/DBA
PlayStation Model: Net Yaroze
Location: Australia
Contact:

Re: How to call another application

Post by gwald » October 28th, 2018, 11:38 am

your call to the exe is wrong, it's should be like orion's
Orion_ wrote:
June 8th, 2013, 2:24 am
"cdrom:\\HI.EXE;1"
I assume your making an iso and HI.EXE is in root.

User avatar
Orion_
Legendary Programmer
Legendary Programmer
Posts: 228
Joined: August 13th, 2012, 2:48 am
I am a: Programmer
PlayStation Model: Net Yaroze
Location: France
Contact:

Re: How to call another application

Post by Orion_ » October 28th, 2018, 7:20 pm

New Nova wrote:
October 28th, 2018, 2:48 am
The "HI.EXE" is in the same folder. I tried just "System_LoadExecutable("HI.EXE");" and "System_LoadExecutable("C:\psyq\projects\pong\HI.EXE");", but I always have a black screen.
do you realise that your Playstation will never have access to your computer's harddrive ?
how can the playstation could be aware of this path "C:\psyq\projects\pong\" ???
the emulator won't magically translate this, the emulator emulate a real playstation, and a real playstation only access files from the CDROM, so you need to make an ISO file with all the file on it, the ISO must be playstation compatible/signed of course ...
http://onorisoft.free.fr/psx/tutorial/tuto.htm#cd
Retro game development on Playstation and other consoles http://orionsoft.free.fr/

User avatar
NITROYUASH
Serious PSXDEV User
Serious PSXDEV User
Posts: 121
Joined: January 7th, 2018, 12:03 am
I am a: Game Designer
PlayStation Model: SCPH-5502
Steam: NITROYUASH
Location: Russian Federation
Contact:

Re: How to call another application

Post by NITROYUASH » October 28th, 2018, 7:47 pm

PS1 can read data from PS-EXE file or CD-ROM.
Hmmm... It is possible to hide PS-EXE within another PS-EXE? xddd

User avatar
Orion_
Legendary Programmer
Legendary Programmer
Posts: 228
Joined: August 13th, 2012, 2:48 am
I am a: Programmer
PlayStation Model: Net Yaroze
Location: France
Contact:

Re: How to call another application

Post by Orion_ » October 28th, 2018, 8:48 pm

NITROYUASH wrote:
October 28th, 2018, 7:47 pm
PS1 can read data from PS-EXE RAM or CD-ROM.
Fixed
NITROYUASH wrote:
October 28th, 2018, 7:47 pm
Hmmm... It is possible to hide PS-EXE within another PS-EXE? xddd
What's the point ? The only purpose of loading another PS-EXE is because you don't have enough memory to implement features in the main PS-EXE currently running.
Retro game development on Playstation and other consoles http://orionsoft.free.fr/

User avatar
New Nova
Curious PSXDEV User
Curious PSXDEV User
Posts: 17
Joined: October 27th, 2018, 8:48 am
I am a: Student in IT, Artist
Motto: Try and retry.
PlayStation Model: SCPH-1001
Want to Find: Tutorials
Looking to: Share some tests
Location: France

Re: How to call another application

Post by New Nova » October 28th, 2018, 9:07 pm

Thanks for helping. So you say that I need to make an iso of my EXE. Do I need to burn it on a real CD ?
MY PONG IS NOT READY

User avatar
NITROYUASH
Serious PSXDEV User
Serious PSXDEV User
Posts: 121
Joined: January 7th, 2018, 12:03 am
I am a: Game Designer
PlayStation Model: SCPH-5502
Steam: NITROYUASH
Location: Russian Federation
Contact:

Re: How to call another application

Post by NITROYUASH » October 29th, 2018, 12:01 am

What's the point ?
idk, just curious. Maybe someone will try to hide EXE in this way? :D
New Nova wrote:
October 28th, 2018, 9:07 pm
Do I need to burn it on a real CD ?
nope

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests