![]() |
Routines |
| Prev: 25784 | Up: Map | Next: 25814 |
| PlaySmokeSound | 25801 | LD C,8 | Set the wave counter in C to 8. | |
| PlaySmokeSound_Loop | 25803 | LD A,C | Fetch the wave counter. | |
| 25804 | CPL | Invert all of the bits in A. | ||
| 25805 | RLCA | Rotate A left once. | ||
| 25806 | LD D,A | Set the duration of the wave in D. | ||
| 25807 | CALL PlaySquareWave | Call PlaySquareWave. | ||
| 25810 | DEC C | Decrease the wave counter by one. | ||
| 25811 | JR NZ,PlaySmokeSound_Loop | Loop back to PlaySmokeSound_Loop until all of the waves have been played. | ||
| 25813 | RET | Return. | ||
| Prev: 25784 | Up: Map | Next: 25814 |