![]() |
Routines |
| Prev: 7275 | Up: Map | Next: 72A5 |
|
Used by the routine at CheckTerrainCollision.
Plays a burst of noise of 1C clicks. It is used when the ship hits the terrain. The entry point at PlayNoise makes the noise for any number of clicks.
|
||||
| PlayCrashSound | 7293 | LD C,$1C | The crash is 1C clicks. | |
| PlayCrashSound_Pattern | 7295 | LD E,$27 | The crash uses pattern 27. | |
|
This entry point is used by the routines at PlayUnusedSound, PlayShortCrashSound, PlayExplosionSound, PlayShotSound, PlayPatternedNoise and PlayNoiseBurst.
|
||||
| PlayNoise | 7297 | LD A,C | The click length starts from the clicks left. | |
| 7298 | XOR E | Flip the bits of A that are set in E. | ||
| 7299 | ADD A,A | Double it to make the on-time. | ||
| 729A | LD B,A | That on-time is passed to the click. | ||
| 729B | AND %00011111 | Keep the bits of A that are set in 1F. | ||
| 729D | LD D,A | The low five bits are the off-time. | ||
| 729E | CALL MakeClick | Call MakeClick. | ||
| 72A1 | DEC C | One click of the noise has been played. | ||
| 72A2 | JR NZ,PlayNoise | Jump to PlayNoise if the zero flag is clear. | ||
| 72A4 | RET | Return. | ||
|
View the equivalent code in;
|
||||
| Prev: 7275 | Up: Map | Next: 72A5 |