![]() |
Routines |
| Prev: BE65 | Up: Map | Next: BEDC |
|
Used by the routine at thief_shot.
|
||||
|
Generates a short beep via OUT ($FE) using a 3-byte pitch table at HL=$0003. Outer loop C counts 0→255 (pitch steps); inner DJNZ loop controls duration. Called just before draw_gun (draw gun) to play the weapon-draw sound effect.
|
||||
| thief_border_beep | BEC5 | LD HL,$0003 | ||
| BEC8 | LD C,$00 | |||
| thief_border_beep_0 | BECA | LD D,$01 | ||
| thief_border_beep_1 | BECC | LD A,(HL) | ||
| BECD | OR $01 | |||
| BECF | OUT ($FE),A | |||
| BED1 | LD B,C | |||
| thief_border_beep_2 | BED2 | DJNZ thief_border_beep_2 | ||
| BED4 | INC HL | |||
| BED5 | DEC D | |||
| BED6 | JR NZ,thief_border_beep_1 | |||
| BED8 | INC C | |||
| BED9 | JR NZ,thief_border_beep_0 | |||
| BEDB | RET | |||
| Prev: BE65 | Up: Map | Next: BEDC |