![]() |
Routines |
| Prev: FDEB | Up: Map | Next: FE23 |
|
Used by the routine at Play_MenuMusicCoda.
Finalise one coda step: scale the pitch, index the ROM beeper helper, then return with interrupts disabled.
|
||||
| Sound_CodaBeep | FE0A | LD A,L | Copy the pitch low byte into A. | |
| FE0B | SRL L | Divide L by 04 with two logical shifts right. | ||
| FE0D | SRL L | |||
| FE0F | CPL | Complement A. | ||
| FE10 | AND %00000011 | Keep only the bottom two bits of A. | ||
| FE12 | LD C,A | Copy that index into C and clear B. | ||
| FE13 | LD B,$00 | |||
| FE15 | LD IX,$03D1 | Point IX at BEEPER and index it by BC. | ||
| FE19 | ADD IX,BC | |||
| FE1B | LD A,($FC86) | Load the border and speaker bits from FC86. | ||
| FE1E | CALL $03D4 | Call BEEPER. | ||
| FE21 | DI | Disable interrupts. | ||
| FE22 | RET | Return. | ||
| Prev: FDEB | Up: Map | Next: FE23 |