ejecting tray

Ask anything your want about Mega/SegaCD programming.

Moderator: Mask of Destiny

Post Reply
evildragon
Very interested
Posts: 326
Joined: Mon Mar 12, 2007 1:53 am
Contact:

ejecting tray

Post by evildragon » Wed Aug 01, 2007 1:22 am

Um, how do you eject the CD-Tray, from a program?

I'm writing a Sega CD program that enhances the CD-Player interface with even more customizable features (including an experimental CD-Text, which I doubt will even work), but I'll be damned if I can figure out the code to actually eject the boot CD! pushing Reset only obviously reboots the console...

(i know the drive on the SCD wasn't designed for CD-Text, but I have an idea that might make it read the data, atleast try too)

TmEE co.(TM)
Very interested
Posts: 2440
Joined: Tue Dec 05, 2006 1:37 pm
Location: Estonia, Rapla City
Contact:

Post by TmEE co.(TM) » Wed Aug 01, 2007 4:16 pm

I'm pretty sure you can't do it in software...
Mida sa loed ? Nagunii aru ei saa ;)
http://www.tmeeco.eu
Files of all broken links and images of mine are found here : http://www.tmeeco.eu/FileDen

Stef
Very interested
Posts: 3131
Joined: Thu Nov 30, 2006 9:46 pm
Location: France - Sevres
Contact:

Post by Stef » Wed Aug 01, 2007 4:48 pm

TmEE co.(TM) wrote:I'm pretty sure you can't do it in software...
You can, at least there is a CDD command for it : $0D00
Send it to the CDD and it opens the tray (if you have a tray of course).
command $0C00 does close it ;)

evildragon
Very interested
Posts: 326
Joined: Mon Mar 12, 2007 1:53 am
Contact:

Post by evildragon » Wed Aug 01, 2007 6:22 pm

Stef wrote:
TmEE co.(TM) wrote:I'm pretty sure you can't do it in software...
You can, at least there is a CDD command for it : $0D00
Send it to the CDD and it opens the tray (if you have a tray of course).
command $0C00 does close it ;)
great, thanks! i knew there was a way to do this, because the BIOS does it..

TascoDLX
Very interested
Posts: 262
Joined: Tue Feb 06, 2007 8:18 pm

Re: ejecting tray

Post by TascoDLX » Wed Aug 01, 2007 6:59 pm

evildragon wrote:Um, how do you eject the CD-Tray, from a program?
DRVOPEN : CDBIOS function $000A
evildragon wrote:(i know the drive on the SCD wasn't designed for CD-Text, but I have an idea that might make it read the data, atleast try too)
For proper CD-Text support, you need to be able to read subcode data from the lead-in area. You can use negative sector numbers for the CDBIOS READ functions but that's not to say it works. In any case, you likely can't go any farther than -148 (CDBIOS limitation).

evildragon
Very interested
Posts: 326
Joined: Mon Mar 12, 2007 1:53 am
Contact:

Post by evildragon » Tue Aug 14, 2007 1:28 pm

I just got done trying all sorts of ways to make the Sega CD read CD-Text..

It won't work, no matter how hard I tried.. Oh well...

RamiroR
Interested
Posts: 18
Joined: Tue Jun 02, 2009 10:45 pm

Post by RamiroR » Fri Jun 05, 2009 2:42 am

Stef wrote:
TmEE co.(TM) wrote:I'm pretty sure you can't do it in software...
You can, at least there is a CDD command for it : $0D00
Send it to the CDD and it opens the tray (if you have a tray of course).
command $0C00 does close it ;)
Hmm, do you have more of those commands? =P I know I should just use the BIOS, but I just want to play a bit with it :P

Post Reply