Prev: 65003 Up: Map Next: 65059
65034: Sound Coda Beep
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 65034 LD A,L Copy the pitch low byte into A.
65035 SRL L Divide L by 4 with two logical shifts right.
65037 SRL L
65039 CPL Complement A.
65040 AND %00000011 Keep only the bottom two bits of A.
65042 LD C,A Copy that index into C and clear B.
65043 LD B,0
65045 LD IX,977 Point IX at BEEPER and index it by BC.
65049 ADD IX,BC
65051 LD A,(64646) Load the border and speaker bits from 64646.
65054 CALL 980 Call BEEPER.
65057 DI Disable interrupts.
65058 RET Return.
Prev: 65003 Up: Map Next: 65059