Prev: 58802 Up: Map Next: 58832
58803: Routine at E5B3
Used by the routine at 58262.
58803 LD A,(55343) A=*PlayerCursor_X_Position.
58806 RLCA RLCA.
58807 RLCA
58808 RLCA
58809 RLCA
58810 LD C,A C=A.
58811 LD B,100 B=100.
58813 LD HL,1000 HL=1000.
58816 LD A,(HL) A=*HL.
58817 AND %00011000 Keep only bits 3-4.
58819 OR %00000101 Set bits 0, 2.
58821 OUT (254),A Send to the speaker.
58823 INC HL Increment HL by one.
58824 PUSH BC Stash BC on the stack.
58825 LD B,C B=C.
58826 DJNZ 58826 Decrease counter by one and loop back to 58826 until counter is zero.
58828 POP BC Restore BC from the stack.
58829 DJNZ 58816 Decrease counter by one and loop back to 58816 until counter is zero.
58831 RET Return.
Prev: 58802 Up: Map Next: 58832