| Routines

FE40: Make a walking sound effect (yellow border)

Used by the routines at B5E8 and EAE0. Your browser doesn't support HTML5 audio. Here is a link to the audio instead.
FE40 | PUSH BC |
FE41 | LD A,$06 | The border will be yellow
This entry point is used by the routine at FE52 with A=1 (blue border).
FE43 | LD C,$08 | Make the sound effect
FE45 | XOR $10
FE47 | OUT ($FE),A
FE49 | LD B,$C0
FE4B | DJNZ $FE4B
FE4D | DEC C
FE4E | JR NZ,$FE45
FE50 | POP BC |
FE51 | RET |