mirror of
https://github.com/holub/mame
synced 2025-04-22 08:22:15 +03:00
Chsuper.c driver. Added notes about the sound writes.
This commit is contained in:
parent
5fce1597df
commit
0573fd994d
@ -212,6 +212,39 @@ static ADDRESS_MAP_START( chsuper_portmap, AS_IO, 8, chsuper_state )
|
||||
AM_RANGE( 0xff20, 0xff3f ) AM_DEVWRITE("dac", dac_device, write_unsigned8) // unk writes
|
||||
ADDRESS_MAP_END
|
||||
|
||||
/* About Sound...
|
||||
|
||||
Samples are PCM unsigned 8-bit, mono.
|
||||
These are embedded into the program ROM, starting
|
||||
at the 0x10000 offset.
|
||||
|
||||
The audio system is currently unknown, but the sound writes
|
||||
are the following...
|
||||
|
||||
For any sample triggered:
|
||||
|
||||
FF39h --> 0x02
|
||||
FF30h --> 0x30
|
||||
|
||||
then the following 5 writes (per sample number)...
|
||||
|
||||
SND# (hex): 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 10 11 12 13 14
|
||||
Writes...
|
||||
FF2Ah: 0x00 0xEA 0x01 0x76 0x00 0xF9 0x01 0x0F 0x00 0x84 0x01 0x01 0x00 0x01 0x01 0x01 0x00 0x01 0x01 0x8C 0x00
|
||||
FF29h: 0xFF 0xF6 0x04 0x05 0xFF 0x05 0x04 0x75 0xFF 0xF8 0x04 0x00 0xFF 0x00 0x04 0x21 0xFF 0x21 0x04 0x0D 0xFF
|
||||
FF28h: 0xFF 0x0F 0xF8 0x69 0xFF 0x75 0x83 0x05 0xFF 0x0D 0x90 0xF8 0xFF 0x00 0x20 0x00 0xFF 0x00 0x00 0x9C 0xFF
|
||||
FF2Fh: 0xF7 0x0F 0xFF 0xFF 0x06 0x00 0xFF 0xFF 0xF9 0x0D 0xFD 0xFF 0x01 0x04 0x1C 0xFF 0x22 0xE3 0xFF 0xFF 0xBB
|
||||
FF2Eh: 0xF0 0x17 0xFF 0xFF 0x8A 0xF2 0xFF 0xFF 0xF2 0x7D 0x98 0xFF 0xFF 0x20 0xE0 0xFF 0xFF 0x00 0xFF 0xFF 0x1F
|
||||
|
||||
then ending with...
|
||||
|
||||
FF2Ch --> 0x00
|
||||
FF2Bh --> 0xF8
|
||||
FF30h --> 0x90
|
||||
FF39h --> 0x00
|
||||
|
||||
*/
|
||||
|
||||
|
||||
static INPUT_PORTS_START( chsuper )
|
||||
PORT_START("IN0")
|
||||
|
Loading…
Reference in New Issue
Block a user