![]() |
Routines |
| Prev: B451 | Up: Map | Next: B45D |
|
Used by the routines at end_of_frame, sound_pitch_from_x, sound_pitch_from_y and sound_pitch_from_xyz.
Six waves with a half-wave count of four times the complement of A (rotated, so the top two bits wrap round). end_of_frame calls this directly during the finale with the last spark's height.
|
||||||||
| sound_pitch_from_a | B454 | CPL | B = the half-wave count | |||||
| B455 | RLCA | |||||||
| B456 | RLCA | |||||||
| B457 | LD B,A | |||||||
| B458 | LD C,$06 | six waves | ||||||
| B45A | JP toggle_audio_hw_xC | |||||||
| Prev: B451 | Up: Map | Next: B45D |