.DefineEnvelope CLC \ Set (Y X) = envelopeData + A ADC #LO(envelopeData) \ TAX \ starting with the low byte LDA #8 \ Set A = 8 for the OSWORD command to define an envelope \ Fall through into MakeSoundEnvelope to set up Y and \ apply the OSWORD command to the (Y X) block, which \ defines the relevant sound envelopeName: DefineEnvelope [Show more] Type: Subroutine Category: Sound Summary: Define a sound envelopeContext: See this subroutine in context in the source code References: This subroutine is called as follows: * MakeEngineSound calls DefineEnvelope * StartGame calls DefineEnvelope
Arguments: A The offset of the sound envelope data in envelopeData: * A = 0 for the first envelope definition * A = 14 for the first envelope definition
[X]
Variable envelopeData (category: Sound)
Data for two sound envelopes