Prev: 42053 Up: Map Next: 42094
42079: Sounds: Appear
Used by the routine at HandlerPlayerAppearing.
Plays a tone of 16 cycles. The half period is made from the seventh byte of the entity (flipped, rotated left once and limited to the range 64 to 127), so it changes as the byte does.
Input
IX The entity
SoundsAppear 42079 LD A,(IX+6) Fetch offset 6 of the entity.
42082 CPL Flip the bits.
42083 RLCA Rotate left once.
42084 AND %00111111 Keep only bits 0-5.
42086 OR %01000000 Set bit 6.
42088 LD B,A Keep the half period in B.
42089 LD C,16 C=16 (the number of cycles).
42091 JP SoundsBeep Jump to SoundsBeep to play the tone.
Prev: 42053 Up: Map Next: 42094