diff options
author | Devin Acker <d@revenant1.net> | 2021-11-01 12:24:23 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-01 12:24:23 -0400 |
commit | 8ecf63a4be37df710c03fa0414014594bc3f3d75 (patch) | |
tree | 9b166ea97619da7a6166ba564a72259890f77880 /src/devices/machine | |
parent | c7ef3525326ee5b91119d1d48450eaa1179073aa (diff) |
gt913: log two more unknown sound commands (#8779)
Diffstat (limited to 'src/devices/machine')
-rw-r--r-- | src/devices/machine/gt913_snd.cpp | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/devices/machine/gt913_snd.cpp b/src/devices/machine/gt913_snd.cpp index ac88c01b0eb..e8b298da3e5 100644 --- a/src/devices/machine/gt913_snd.cpp +++ b/src/devices/machine/gt913_snd.cpp @@ -85,7 +85,7 @@ void gt913_sound_hle_device::command_w(uint16_t data) This is usually word-aligned, but not always (e.g. ctk551's lowest piano sample is at address 0x5a801) */ - uint32_t samplestart = (m_data[1] | (m_data[2] << 16)) & 0xfffff; + uint32_t samplestart = (m_data[1] | (m_data[2] << 16)) & 0x1fffff; logerror("voice %u sample start 0x%06x\n", voicenum, samplestart); } else if (voicecmd == 0x0000) @@ -93,7 +93,7 @@ void gt913_sound_hle_device::command_w(uint16_t data) /* Set the voice's sample end point as a ROM address. */ - uint32_t sampleend = (m_data[0] | (m_data[1] << 16)) & 0xfffff; + uint32_t sampleend = (m_data[0] | (m_data[1] << 16)) & 0x1fffff; logerror("voice %u sample end 0x%06x\n", voicenum, sampleend); } else if (voicecmd == 0x2000) @@ -101,9 +101,13 @@ void gt913_sound_hle_device::command_w(uint16_t data) /* Set the voice's sample loop point as a ROM address. */ - uint32_t sampleloop = (m_data[0] | (m_data[1] << 16)) & 0xfffff; + uint32_t sampleloop = (m_data[0] | (m_data[1] << 16)) & 0x1fffff; logerror("voice %u sample loop 0x%06x\n", voicenum, sampleloop); } + else if (voicecmd == 0x200a) + { + logerror("voice %u cmd 0x200a (data = %02x)\n", voicenum, m_data[2] & 0xff); + } else if (voicecmd == 0x200b) { /* @@ -131,6 +135,10 @@ void gt913_sound_hle_device::command_w(uint16_t data) uint32_t pitch = (m_data[0] << 8) | (m_data[1] >> 8); logerror("voice %u pitch 0x%06x\n", voicenum, pitch); } + else if (voicecmd == 0x6006) + { + logerror("voice %u cmd 0x6006 (data = %02x)\n", voicenum, m_data[1] & 0xff); + } else if (voicecmd == 0x6007) { /* |