![]() |
Routines |
| Prev: B6BB | Up: Map | Next: B6CE |
|
Used by the routine at HandleMouseSecondPart.
Plays the sound of a moving robot mouse, but only if the sprite number of the object is even.
|
||||||||
|
Return unless this is an even sprite.
|
||||||||
| PlayMouseSound | B6C0 | LD A,(IX+$00) | Fetch the sprite number. | |||||
| B6C3 | AND %00000001 | Keep only bit 0. | ||||||
| B6C5 | RET NZ | Return if the sprite number is odd. | ||||||
|
Set a fixed pitch and join the footstep player.
|
||||||||
| B6C6 | LD B,$80 | Set the pitch to 80. | ||||||
| B6C8 | LD A,($5B02) | Fetch FrameCounter. | ||||||
| B6CB | CPL | Invert it. | ||||||
| B6CC | JR PlayFootstepsSound_EveryFrame_TestPitch | Jump to PlayFootstepsSound_EveryFrame_TestPitch. | ||||||
|
View the equivalent code in;
|
||||||||
| Prev: B6BB | Up: Map | Next: B6CE |