Chase H.Q. | Routines |
Prev: 8A0F | Up: Map | Next: 8A57 |
The game uses $78 or $C8 for both args.
|
||||||||||
sfx_bipbow | 8A36 | LD C,$14 | Set outer loop counter to 20 | |||||||
8A38 | LD HL,$0505 | Inner loop counter. H is decremented and restored from L each loop. | ||||||||
Delay for D iterations.
|
||||||||||
sfx_bipbow_loop | 8A3B | DEC D | ||||||||
8A3C | JR NZ,sfx_bipbow_loop | |||||||||
8A3E | LD D,E | Restore D | ||||||||
Delay for (24 - C) iterations.
|
||||||||||
8A3F | LD A,$18 | |||||||||
8A41 | SUB C | |||||||||
8A42 | LD B,A | |||||||||
sfx_bipbow_0 | 8A43 | DJNZ sfx_bipbow_0 | ||||||||
8A45 | LD A,$18 | Set EAR and MIC bits | ||||||||
8A47 | OUT ($FE),A | Set output | ||||||||
Delay for C iterations.
|
||||||||||
8A49 | LD B,C | |||||||||
sfx_bipbow_1 | 8A4A | DJNZ sfx_bipbow_1 | ||||||||
8A4C | XOR A | Clear output | ||||||||
8A4D | OUT ($FE),A | |||||||||
8A4F | DEC H | Loop while inner loop counter > 0 | ||||||||
8A50 | JR NZ,sfx_bipbow_loop | |||||||||
8A52 | LD H,L | Restore H | ||||||||
8A53 | DEC C | Loop while outer loop counter > 0 | ||||||||
8A54 | JR NZ,sfx_bipbow_loop | |||||||||
This entry point is used by the routine at start_siren_hook.
|
||||||||||
sfx_bipbow_2 | 8A56 | RET | Return |
Prev: 8A0F | Up: Map | Next: 8A57 |