Prev: E775 Up: Map Next: E9BF
E9A5: Routine at E9A5
Used by the routines at D352 and E775.
E9A5 LD A,R L=the contents of the Memory Refresh Register.
E9A7 LD L,A
E9A8 LD H,$01 H=01.
E9AA LD B,$64 B=64.
E9AC LD A,(HL) A=*HL.
E9AD AND %00011000 Keep only bits 3-4.
E9AF OR %00000101 Set bits 0, 2.
E9B1 OUT ($FE),A Send to the speaker.
E9B3 INC HL Increment HL by one.
E9B4 LD A,R A=the contents of the Memory Refresh Register.
E9B6 INC A Increment A by one.
E9B7 RLCA RLCA.
E9B8 LD E,A E=A.
E9B9 DEC E Decrease E by one.
E9BA JR NZ,$E9B9 Jump to E9B9 if E is not zero.
E9BC DJNZ $E9AC Decrease counter by one and loop back to E9AC until counter is zero.
E9BE RET Return.
Prev: E775 Up: Map Next: E9BF