CdInit causes black screen

General PSX CD Troubleshooting, PSX CD-ROM Mastering and Disc Creation
Post Reply
User avatar
splatkillwill
What is PSXDEV?
What is PSXDEV?
Posts: 2
Joined: Aug 31, 2022
I am a: Programmer, Father, Photographer
PlayStation Model: emulation
Discord: splatkillwill#6219
Location: USA
Contact:

CdInit causes black screen

Post by splatkillwill » August 31st, 2022, 3:33 pm

Hello I'm hoping to get help with an issue i'm having. If I simply uncomment the

Code: Select all

CdInit()
my project goes from working as expected to just showing a black screen.

https://github.com/william-lohan/psx-ec ... main.c#L63

User avatar
splatkillwill
What is PSXDEV?
What is PSXDEV?
Posts: 2
Joined: Aug 31, 2022
I am a: Programmer, Father, Photographer
PlayStation Model: emulation
Discord: splatkillwill#6219
Location: USA
Contact:

Post by splatkillwill » August 31st, 2022, 4:25 pm

OK new info. works with PPCSX-Redux with OpenBIOS but not pSX with scph7502.bin

User avatar
MottZilla
Verified
Serious PSXDEV User
Serious PSXDEV User
Posts: 88
Joined: Jul 04, 2015
Location: North America

Post by MottZilla » August 31st, 2022, 4:37 pm

Try adding StopCallback() before CdInit().

User avatar
Shadow
Verified
Admin / PSXDEV
Admin / PSXDEV
Posts: 2670
Joined: Dec 31, 2012
PlayStation Model: H2000/5502
Discord: Shadow^PSXDEV

Post by Shadow » September 5th, 2022, 4:47 pm

Try doing this and monitor the TTY output to see what the system is doing.

Code: Select all

ResetCallback(); // call this function at the absolute start of your program
CdSetDebug(3); // enable CD debugging
CdInit(); // initialise the CD-ROM subsystem
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 5 guests