CD drive commands

From NeoGeo Development Wiki
Revision as of 10:00, 10 January 2017 by Furrtek (talk | contribs) (Created page with "=0: STATUS= No parameters. No-op just to read the status. =1: STOP ALL= No parameters. Stops CDDA playback, disk spin, and sets drive in data mode. =2: TOC COMMAND= CD dri...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

0: STATUS

No parameters. No-op just to read the status.

1: STOP ALL

No parameters. Stops CDDA playback, disk spin, and sets drive in data mode.

2: TOC COMMAND

Nibble D is the sub-command code:

0: GET POSITION

MSF in status will be the current position from the beginning of the CD (absolute).

1: GET TRACK POSITION

MSF in status will be the current position from the beginning of the track (relative).

2: GET TRACK NUMBER

Minutes in status will be the current track.

3: GET CD LENGTH

MSF in status will be the total CD length.

4: GET FIRST AND LAST TRACKS

Minutes in status will be the first track (normally 1), seconds will be the last.

5: GET TRACK MSF

MSF in status will be the start of the desired track (nibbles E and F). If the track is a data track, the frames upper digit's 4th bit will be 1.

3: PLAY

  • B: Minutes high digit
  • C: Minutes low digit
  • D: Seconds high digit
  • E: Seconds low digit
  • F: Frames high digit
  • G: Frames low digit

Starts playing audio at specified MSF.

4: SEEK

  • B: Minutes high digit
  • C: Minutes low digit
  • D: Seconds high digit
  • E: Seconds low digit
  • F: Frames high digit
  • G: Frames low digit

Sets pickup at specified MSF.

6: PAUSE

Pauses CDDA playback (disk keeps spinning).

7: RESUME

Resumes CDDA playback after pause.

8: FAST-FORWARD

Unknown.

9: REWIND

Unknown.

10: INIT

Sets pickup at CD lead-in ?

12: CLOSE

Closes the tray on the front-loading NeoGeo CD.

13: OPEN

Opens the tray.