![]() |
Routines |
| Prev: 9AB6 | Up: Map | Next: 9AD9 |
|
Used by the routine at UpdateGrowingBubbleEntity.
Plays four short tones, with a pitch which depends on field 20 of the entity, and carries on with the update of the entity.
|
||||||||
| MakeEntitySound | 9ABE | LD A,(IX+$20) | Read field 20 of the entity. | |||||
| 9AC1 | XOR %00011111 | Flip bits 0-4. | ||||||
| 9AC3 | LD B,A | Keep it in B. | ||||||
| 9AC4 | ADD A,A | Multiply it by four... | ||||||
| 9AC5 | ADD A,A | |||||||
| 9AC6 | ADD A,B | ...and add it to make five times the value. | ||||||
| 9AC7 | ADD A,$10 | Add 10 to make the length of the tones. | ||||||
| 9AC9 | LD B,A | Set the length of the tones in B. | ||||||
| 9ACA | CALL PlayClick | Call PlayClick to play a tone. | ||||||
| 9ACD | CALL PlayClick | Call PlayClick to play a tone. | ||||||
| 9AD0 | CALL PlayClick | Call PlayClick to play a tone. | ||||||
| 9AD3 | CALL PlayClick | Call PlayClick to play a tone. | ||||||
| 9AD6 | JP UpdateEntity_Project | Jump to UpdateEntity_Project to carry on updating the entity. | ||||||
| Prev: 9AB6 | Up: Map | Next: 9AD9 |