Prev: 27638 Up: Map Next: 27693
27646: Routine at 6BFE
Used by the routine at GameInit.
27646 LD BC,30737 BC=MapPoints.
27649 LD HL,(24069) HL=PlayerMapPosition.
27652 LD DE,96 DE=0096.
27655 AND A Clear the carry flag.
27656 SBC HL,DE
27658 EX DE,HL
27659 EX DE,HL
27660 LD A,(BC)
27661 INC BC
27662 LD D,A D=A.
27663 CALL 27440 Call 27440.
27666 EX DE,HL
27667 AND A
27668 SBC HL,DE
27670 JR NC,27690
27672 INC BC Increment BC twice (move onto the next record).
27673 INC BC
27674 LD HL,31958 HL=31958 (one byte past the end of MapPoints).
27677 AND A
27678 SBC HL,BC
27680 JR NZ,27659
27682 LD BC,30737 Write MapPoints to CurrentObject.
27685 LD (24089),BC
27689 RET Return.
27690 DEC BC Decrease BC by one.
27691 JR 27685 Jump to 27685.
Prev: 27638 Up: Map Next: 27693