Prev: AFA9 Up: Map Next: AFD8
AFBE: Play sound effect based on values passed in.
Input
BC Note Pitch offset
H Offset for first note.
C Also first note repeat count.
L Offset for second note.
D Second note count.
Output
Beep_Effect AFBE DI
AFBF LD A,B
AFC0 SUB H
AFC1 LD B,A
AFC2 CALL Beep_Simple
AFC5 DEC C
AFC6 JR NZ,Beep_Effect
Beep_Effect_0 AFC8 CALL Beep_Simple
AFCB DEC D
AFCC JR NZ,Beep_Effect_0
Beep_Effect_1 AFCE LD A,B
AFCF ADD A,L
AFD0 LD B,A
AFD1 CALL Beep_Simple
AFD4 DEC E
AFD5 JR NZ,Beep_Effect_1
AFD7 RET
Prev: AFA9 Up: Map Next: AFD8