Prev: B62C Up: Map Next: B64A
B63C: A note pitched by an object's Z
Six waves at a half-wave count of the complement of 64 more than Z, rotated left twice (so the top two bits wrap round): the higher the object, the higher the note. The entry at BEEP_BY_A takes the value in A; BEEP_BY_U, BEEP_BY_V and BEEP_BY_UVZ use it for U, V and all three. Knight Lore's sound_pitch_from_z and sound_pitch_from_a.
Input
IX the object
BEEP_BY_Z B63C LD A,(IX+$03) Z
This entry point is used by the routines at OILED_ROBOT, BEEP_BY_U, BEEP_BY_V and BEEP_BY_UVZ.
BEEP_BY_A B63F ADD A,$40 B = the half-wave count
B641 CPL
B642 RLCA
B643 RLCA
B644 LD B,A
B645 LD C,$06 six waves
B647 JP BEEP
Prev: B62C Up: Map Next: B64A