forked from krikzz/msu-md
-
Notifications
You must be signed in to change notification settings - Fork 0
/
readme.txt
40 lines (30 loc) · 1.39 KB
/
readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# msu-md
MegaCD driver for msu-like interfacing with CD hardware
-------------------------------------------- control registers
0xA12010 command
0xA12011 argument #1 (byte)
0xA12012-15 argument #2 (32-bit word - big endian)
0xA1201F command clock. increment it for command execution
0xA12020 mcd status. 0-ready, 1-init, 2-cmd busy
commands:
PLAY: 0x11 play cdda track and stop when end of track is reached
arguments: #1 = decimal number of track (1-99)
PLAYLP: 0x12 play cdda track and loop from start of track
arguments: #1 = decimal number of track (1-99)
PAUSE: 0x13 pause playback
arguments: #1 = volume fading time. 1/75 of sec (75 equal to 1 sec) instant stop if 0
RESUME: 0x14 resume playback
arguments: no
VOL: 0x15 set cdda volume
arguments: #1 = volume (0-255)
PLAYOF: 0x1A play cdda track and loop from specified sector offset
arguments: #1 = decimal number of track (1-99)
#2 = offset in sectors from the start of the track to apply when looping.
-------------------------------------------- usage
Include msu-drv.bin in your binary and call it as function for initialization.
Finction will return 0 if driver loaded succesfuly or 1 if MCD hardware not detected.
Driver ready for commands processing when 0xA12020 sets to 0
--------------------------------------------content
msu-drv.bin compilled driver binary
msu-md-drv driver sources
msu-md-sample driver usage sample