Prev: 59253 Up: Map Next: 59839
59813: Routine at E9A5
Used by the routines at 54098 and 59253.
59813 LD A,R L=the contents of the Memory Refresh Register.
59815 LD L,A
59816 LD H,1 H=1.
59818 LD B,100 B=100.
59820 LD A,(HL) A=*HL.
59821 AND %00011000 Keep only bits 3-4.
59823 OR %00000101 Set bits 0, 2.
59825 OUT (254),A Send to the speaker.
59827 INC HL Increment HL by one.
59828 LD A,R A=the contents of the Memory Refresh Register.
59830 INC A Increment A by one.
59831 RLCA RLCA.
59832 LD E,A E=A.
59833 DEC E Decrease E by one.
59834 JR NZ,59833 Jump to 59833 if E is not zero.
59836 DJNZ 59820 Decrease counter by one and loop back to 59820 until counter is zero.
59838 RET Return.
Prev: 59253 Up: Map Next: 59839