![]() |
Routines |
| Prev: 45874 | Up: Map | Next: 46075 |
|
Used by the routine at HandleBlock.
Plays four cycles of a tone whose pitch is taken from the eight values of PitchTable, which is chosen by the lowest three bits of the frame counter.
|
||||
|
Choose a pitch from the table.
|
||||
| PlayPitchFromTable | 46057 | LD A,(23458) | Fetch FrameCounter. | |
| 46060 | AND %00000111 | Keep bits 0 to 2. | ||
| 46062 | LD L,A | Set HL to the entry number. | ||
| 46063 | LD H,0 | |||
| 46065 | LD BC,46075 | Point BC at PitchTable. | ||
| 46068 | ADD HL,BC | Add the entry number to the address of the table. | ||
| 46069 | LD B,(HL) | Fetch the pitch. | ||
| 46070 | LD C,4 | Set the number of cycles to 4. | ||
| 46072 | JP PlayWaveSequence | Jump to PlayWaveSequence. | ||
|
View the equivalent code in;
|
||||
| Prev: 45874 | Up: Map | Next: 46075 |