Difference between revisions of "FF7/Field/Script/Opcodes/F2 AKAO"
Jump to navigation
Jump to search
my_wiki>Myst6re |
my_wiki>NFITC1 m (→Operation list (by Aali): Minor re-structuring of the list. All valid commands and duplicates are noted, but DA and E4 don't have a function.) |
||
Line 39: | Line 39: | ||
<ul> | <ul> | ||
+ | <li>'''10''' ''Unknown''</li> | ||
+ | <li>'''14''' ''Unknown''</li> | ||
+ | <li>'''15''' ''Unknown'' (same as 15)</li> | ||
+ | <li>'''18''' ''Change to Music?''</li> | ||
+ | <li>'''19''' ''Change to Music?'' (same as 18)</li> | ||
+ | ---- | ||
<li>'''20''' ''Unknown''</li> | <li>'''20''' ''Unknown''</li> | ||
<li>'''21''' ''Unknown''</li> | <li>'''21''' ''Unknown''</li> | ||
<li>'''22''' ''Unknown''</li> | <li>'''22''' ''Unknown''</li> | ||
<li>'''23''' ''Unknown''</li> | <li>'''23''' ''Unknown''</li> | ||
− | + | <li>'''24''' ''Unknown'' (same as 20)</li> | |
+ | <li>'''25''' ''Unknown'' (same as 21)</li> | ||
+ | <li>'''26''' ''Unknown'' (same as 22)</li> | ||
+ | <li>'''27''' ''Unknown'' (same as 23)</li> | ||
<li>'''28''' Play a sound effect on channel #1</li> | <li>'''28''' Play a sound effect on channel #1</li> | ||
<li>'''29''' Play a sound effect on channel #2</li> | <li>'''29''' Play a sound effect on channel #2</li> | ||
Line 72: | Line 81: | ||
<li>'''AE''' Pan transitions (channel #3)</li> | <li>'''AE''' Pan transitions (channel #3)</li> | ||
<li>'''AF''' Pan transitions (channel #4)</li> | <li>'''AF''' Pan transitions (channel #4)</li> | ||
+ | ---- | ||
<li>'''B0''' Tempo control (channel #1)</li> | <li>'''B0''' Tempo control (channel #1)</li> | ||
<li>'''B1''' Tempo control (channel #2)</li> | <li>'''B1''' Tempo control (channel #2)</li> | ||
Line 90: | Line 100: | ||
<li>'''C1''' Music volume transition</li> | <li>'''C1''' Music volume transition</li> | ||
<li>'''C2''' Music volume fade</li> | <li>'''C2''' Music volume fade</li> | ||
− | |||
<li>'''C8''' Set music pan? (noop in PC version)</li> | <li>'''C8''' Set music pan? (noop in PC version)</li> | ||
<li>'''C9''' Music pan transition? (noop in PC version)</li> | <li>'''C9''' Music pan transition? (noop in PC version)</li> | ||
Line 98: | Line 107: | ||
<li>'''D1''' Music tempo transition</li> | <li>'''D1''' Music tempo transition</li> | ||
<li>'''D2''' Music tempo fade</li> | <li>'''D2''' Music tempo fade</li> | ||
+ | <li>'''DA''' 'Dummy'</li> | ||
---- | ---- | ||
− | + | <li>'''E4''' 'Dummy'</li> | |
− | |||
− | <li>'''E4''' ' | ||
---- | ---- | ||
<li>'''F0''' Stop music</li> | <li>'''F0''' Stop music</li> | ||
<li>'''F1''' Stop sound effects</li> | <li>'''F1''' Stop sound effects</li> | ||
</ul> | </ul> |
Revision as of 22:28, 6 September 2013
- Opcode: 0xF2
- Short name: AKAO
- Long name: Sound Operation (byte param1)
Memory layout
0xF2 | B1 / B2 | B3 / B4 | 0 / B6 | Op | Param1 | Param2 | Param3 | Param4 | Param5 |
---|
Arguments
- const Bit[4] B1: Bank to retrieve Param1, or zero if Param1 is specified as a literal value.
- const Bit[4] B2: Bank to retrieve Param2, or zero if Param2 is specified as a literal value.
- const Bit[4] B3: Bank to retrieve Param3, or zero if Param3 is specified as a literal value.
- const Bit[4] B4: Bank to retrieve Param4, or zero if Param4 is specified as a literal value.
- const Bit[4] 0: Zero.
- const Bit[4] B6: Bank to retrieve Param5, or zero if Param5 is specified as a literal value.
- const UByte Op: Operation to perform.
- const UByte Param1: Parameter 1.
- const UShort Param2: Parameter 2.
- const UShort Param3: Parameter 3.
- const UShort Param4: Parameter 4.
- const UShort Param5: Parameter 5.
Description
Perform an operation described by Op, and uses the parameters depending on the operation.
Operation list (by Aali)
- 10 Unknown
- 14 Unknown
- 15 Unknown (same as 15)
- 18 Change to Music?
- 19 Change to Music? (same as 18)
- 20 Unknown
- 21 Unknown
- 22 Unknown
- 23 Unknown
- 24 Unknown (same as 20)
- 25 Unknown (same as 21)
- 26 Unknown (same as 22)
- 27 Unknown (same as 23)
- 28 Play a sound effect on channel #1
- 29 Play a sound effect on channel #2
- 2A Play a sound effect on channel #3
- 2B Play a sound effect on channel #4
- 98 Resumes music and sound effects
- 99 Pauses music and sound effects
- 9A Resumes only the music
- 9B Pauses only the music
- 9C Resumes only sound effects
- 9D Pauses only sound effects
- A0 Volume control (channel #1)
- A1 Volume control (channel #2)
- A2 Volume control (channel #3)
- A3 Volume control (channel #4)
- A4 Volume transitions (channel #1)
- A5 Volume transitions (channel #2)
- A6 Volume transitions (channel #3)
- A7 Volume transitions (channel #4)
- A8 Pan control (channel #1)
- A9 Pan control (channel #2)
- AA Pan control (channel #3)
- AB Pan control (channel #4)
- AC Pan transitions (channel #1)
- AD Pan transitions (channel #2)
- AE Pan transitions (channel #3)
- AF Pan transitions (channel #4)
- B0 Tempo control (channel #1)
- B1 Tempo control (channel #2)
- B2 Tempo control (channel #3)
- B3 Tempo control (channel #4)
- B4 Tempo transitions (channel #1)
- B5 Tempo transitions (channel #2)
- B6 Tempo transitions (channel #3)
- B7 Tempo transitions (channel #4)
- B8 Volume control for all channels
- B9 Volume transitions for all channels
- BA Pan control for all channels
- BB Pan transitions for all channels
- BC Tempo control for all channels
- BD Tempo transitions for all channels
- C0 Set music volume [param1=Volume level]
- C1 Music volume transition
- C2 Music volume fade
- C8 Set music pan? (noop in PC version)
- C9 Music pan transition? (noop in PC version)
- CA Music pan fade? (noop in PC version)
- D0 Set music tempo
- D1 Music tempo transition
- D2 Music tempo fade
- DA 'Dummy'
- E4 'Dummy'
- F0 Stop music
- F1 Stop sound effects