Dynamite Dan | Routines |
Prev: DA8D | Up: Map | Next: DAB2 |
|
||||
DA9E | LD HL,$DAFA | Set the next sound action (DA8B) to pause. (DAFA) | ||
DAA1 | LD ($DA8B),HL | |||
DAA4 | LD A,($DA87) | Get the current note. | ||
This entry point is used by the routine at DB17, where the current note is already set in A.
|
||||
DAA7 | ADD A,A | Double it to get a word offset. | ||
DAA8 | LD E,A | Put this value in DE. | ||
DAA9 | LD D,$00 | |||
DAAB | LD HL,$6919 | Add the base offset of the pitches (6919). | ||
DAAE | ADD HL,DE | |||
DAAF | LD E,(HL) | Put the frequency in DE. (D is already 0.) | ||
DAB0 | INC HL | Put the length in B. | ||
DAB1 | LD B,(HL) |
Prev: DA8D | Up: Map | Next: DAB2 |