![]() |
Routines |
| Prev: A403 | Up: Map | Next: A41B |
|
The same shape as SOUND_CAUGHT with the pitch derived differently -- three rotations, complemented, folded about $40 -- which is what makes it a different effect rather than the same one at another speed. ARRIVE_IN_ROOM starts it through PLAY_SOUND_NEW_ROOM whenever a room is entered.
|
||||
| SOUND_NEW_ROOM | A408 | DEC (IX+$01) | Counting down. | |
| A40B | JR Z,END_SOUND | |||
| A40D | LD A,(IX+$01) | Cycles from the count. | ||
| A410 | LD C,A | |||
| A411 | RLCA | Pitch from the count as well, but along a different curve. | ||
| A412 | RLCA | |||
| A413 | RLCA | |||
| A414 | CPL | |||
| A415 | XOR $40 | |||
| A417 | LD B,A | |||
| A418 | JP BEEP_BC | |||
| Prev: A403 | Up: Map | Next: A41B |