Prev: B451 Up: Map Next: B45D
B454: Sound: a note pitched by A
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.
Input
A the value to turn into a pitch; the larger, the higher
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