![]() |
Routines |
| Prev: 54862 | Up: Map | Next: 54899 |
|
Never used. Makes a tone of a pitch that depends on the type of an object.
|
||||||||
| PlayObjectSound | 54885 | LD A,(IX+0) | Fetch the type of the object. | |||||
| 54888 | CPL | Invert it. | ||||||
| 54889 | RRCA | Rotate it so that its lowest three bits are in bits 5 to 7. | ||||||
| 54890 | RRCA | |||||||
| 54891 | RRCA | |||||||
| 54892 | AND %11100000 | Keep only those bits. | ||||||
| 54894 | LD B,A | Put the pitch in B. | ||||||
| 54895 | LD C,6 | Set the length of the tone to six cycles. | ||||||
| 54897 | JR PlayWaveSequence | Jump to PlayWaveSequence to make the tone. | ||||||
|
View the equivalent code in;
|
||||||||
| Prev: 54862 | Up: Map | Next: 54899 |