Prev: BE0A Up: Map Next: BE52
BE21: routine45
Used by the routines at routine23 and COUNTL.
routine45 BE21 PUSH AF
BE22 XOR A
BE23 LD (unknown20),A
BE26 PUSH HL
BE27 PUSH DE
BE28 PUSH BC
BE29 LD BC,(cursor_coordinates)
BE2D DEC C
BE2E CALL routine46
BE31 DEC B
BE32 CALL routine46
BE35 INC C
BE36 CALL routine46
BE39 INC C
BE3A CALL routine46
BE3D INC B
BE3E CALL routine46
BE41 INC B
BE42 CALL routine46
BE45 DEC C
BE46 CALL routine46
BE49 DEC C
BE4A CALL routine46
BE4D POP BC
BE4E POP DE
BE4F POP HL
BE50 POP AF
BE51 RET
Prev: BE0A Up: Map Next: BE52