![]() |
Routines |
| Prev: A445 | Up: Map | Next: A46E |
|
Used by the routine at HandlerPlayerAppearing.
Plays a tone of 10 cycles. The half period is made from the seventh byte of the entity (flipped, rotated left once and limited to the range 40 to 7F), so it changes as the byte does.
|
||||||||
| SoundsAppear | A45F | LD A,(IX+$06) | Fetch offset 06 of the entity. | |||||
| A462 | CPL | Flip the bits. | ||||||
| A463 | RLCA | Rotate left once. | ||||||
| A464 | AND %00111111 | Keep only bits 0-5. | ||||||
| A466 | OR %01000000 | Set bit 6. | ||||||
| A468 | LD B,A | Keep the half period in B. | ||||||
| A469 | LD C,$10 | C=10 (the number of cycles). | ||||||
| A46B | JP SoundsBeep | Jump to SoundsBeep to play the tone. | ||||||
| Prev: A445 | Up: Map | Next: A46E |