Hello World message with another EXE-runner by Start/X

General Programming help in C, C++ or ASM, Compiling / Debugging, and R3000A Central Processing Unit (CPU) information
Post Reply
User avatar
SlavaVlasov
Curious PSXDEV User
Curious PSXDEV User
Posts: 11
Joined: Jul 21, 2018
I am a: Romhacker, Programmer, Gamer
PlayStation Model: SCPH-5502

Hello World message with another EXE-runner by Start/X

Post by SlavaVlasov » July 21st, 2018, 11:16 am

Hello! I'm new here.
I use a Psx / PSOne Development Studio 2006.
I would like to see the following example:
The most common EXE, displaying the message "Hello World", but that when you press the Start or X triggered the launch of another EXE file (specified in the code) on the cdrom.

How to do that?
Thanks.

User avatar
Administrator
Verified
Admin / PSXDEV
Admin / PSXDEV
Posts: 2686
Joined: Dec 31, 2012
I am a: Shadow
PlayStation Model: H2000/5502

Post by Administrator » July 21st, 2018, 12:58 pm

See the Psy-Q examples for Load() and Exec() to load it as a child process, or LoadExec() to load it as a parent.
Development Console: SCPH-5502 with 8MB RAM, MM3 Modchip, PAL 60 Colour Modification (for NTSC), PSIO Switch Board, DB-9 breakout headers for both RGB and Serial output and an Xplorer with CAETLA 0.34.

PlayStation Development PC: Windows 98 SE, Pentium 3 at 400MHz, 128MB SDRAM, DTL-H2000, DTL-H2010, DTL-H201A, DTL-S2020 (with 4GB SCSI-2 HDD), 21" Sony G420, CD-R burner, 3.25" and 5.25" Floppy Diskette Drives, ZIP 100 Diskette Drive and an IBM Model M keyboard.

User avatar
SlavaVlasov
Curious PSXDEV User
Curious PSXDEV User
Posts: 11
Joined: Jul 21, 2018
I am a: Romhacker, Programmer, Gamer
PlayStation Model: SCPH-5502

Post by SlavaVlasov » November 21st, 2019, 2:34 pm

Another problem arose: I compiled EXE "in" "PSOne Development Studio 2006" and renamed it to "PSX.EXE". Then compiled the image, but pSX 1.13 writes in command prompt the following:

Code: Select all

r3000: executed illegal opcode bfc06fdc
r3000: executed illegal opcode 00797474
r3000: executed illegal opcode 534e4f43
r3000: executed illegal opcode 00454c4f
r3000: executed illegal opcode 00010001
r3000: executed illegal opcode 00000001
Nevertheless, "Hello World" from PSXDEV's example is perfectly boot. Is the problem in the Blade?

User avatar
Administrator
Verified
Admin / PSXDEV
Admin / PSXDEV
Posts: 2686
Joined: Dec 31, 2012
I am a: Shadow
PlayStation Model: H2000/5502

Post by Administrator » November 21st, 2019, 9:57 pm

Yes. Don't use "PSone Development Studio 2006". Use "Psy-Q" or "LameGuys SDK".
Development Console: SCPH-5502 with 8MB RAM, MM3 Modchip, PAL 60 Colour Modification (for NTSC), PSIO Switch Board, DB-9 breakout headers for both RGB and Serial output and an Xplorer with CAETLA 0.34.

PlayStation Development PC: Windows 98 SE, Pentium 3 at 400MHz, 128MB SDRAM, DTL-H2000, DTL-H2010, DTL-H201A, DTL-S2020 (with 4GB SCSI-2 HDD), 21" Sony G420, CD-R burner, 3.25" and 5.25" Floppy Diskette Drives, ZIP 100 Diskette Drive and an IBM Model M keyboard.

User avatar
SlavaVlasov
Curious PSXDEV User
Curious PSXDEV User
Posts: 11
Joined: Jul 21, 2018
I am a: Romhacker, Programmer, Gamer
PlayStation Model: SCPH-5502

Post by SlavaVlasov » November 22nd, 2019, 3:18 am

Ok. I understand.
Where i can find more samples for PSY-Q? Example, make a scrolling tiled (from Tim) background behind text?

User avatar
Administrator
Verified
Admin / PSXDEV
Admin / PSXDEV
Posts: 2686
Joined: Dec 31, 2012
I am a: Shadow
PlayStation Model: H2000/5502

Post by Administrator » November 22nd, 2019, 4:03 am

From the samples directory on the 'Programmers Tool' CD-ROM which can be found on the 'Downloads' page on the website.
Development Console: SCPH-5502 with 8MB RAM, MM3 Modchip, PAL 60 Colour Modification (for NTSC), PSIO Switch Board, DB-9 breakout headers for both RGB and Serial output and an Xplorer with CAETLA 0.34.

PlayStation Development PC: Windows 98 SE, Pentium 3 at 400MHz, 128MB SDRAM, DTL-H2000, DTL-H2010, DTL-H201A, DTL-S2020 (with 4GB SCSI-2 HDD), 21" Sony G420, CD-R burner, 3.25" and 5.25" Floppy Diskette Drives, ZIP 100 Diskette Drive and an IBM Model M keyboard.

User avatar
SlavaVlasov
Curious PSXDEV User
Curious PSXDEV User
Posts: 11
Joined: Jul 21, 2018
I am a: Romhacker, Programmer, Gamer
PlayStation Model: SCPH-5502

Post by SlavaVlasov » November 24th, 2019, 8:25 am

I Found "BGSAMPLE" folder there, but i can't execute this sample on emulator. I even maked a ISO image through "buildcd+stripiso", but after boot logo i see just black screen.

User avatar
Administrator
Verified
Admin / PSXDEV
Admin / PSXDEV
Posts: 2686
Joined: Dec 31, 2012
I am a: Shadow
PlayStation Model: H2000/5502

Post by Administrator » November 24th, 2019, 10:33 pm

I think that uses PQBLOAD.COM by default from Sony so you'll have to edit it with custom CD loading routines for use on an emulator or link the data file into memory.
Development Console: SCPH-5502 with 8MB RAM, MM3 Modchip, PAL 60 Colour Modification (for NTSC), PSIO Switch Board, DB-9 breakout headers for both RGB and Serial output and an Xplorer with CAETLA 0.34.

PlayStation Development PC: Windows 98 SE, Pentium 3 at 400MHz, 128MB SDRAM, DTL-H2000, DTL-H2010, DTL-H201A, DTL-S2020 (with 4GB SCSI-2 HDD), 21" Sony G420, CD-R burner, 3.25" and 5.25" Floppy Diskette Drives, ZIP 100 Diskette Drive and an IBM Model M keyboard.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests