Prev: 90A2 Up: Map Next: 9126
90FC: Routine at 90FC
Used by the routine at Initialise_SubGame.
90FC LD HL,($99C8) HL=*99C8.
90FF LD IX,$6240 IX=6240.
9103 LD A,$00 A=00.
9105 RLD RLD.
9107 RET Z Return if {} is zero.
9108 LD B,A B=A.
9109 RLD RLD.
910B LD C,A C=A.
910C RLD RLD.
910E LD DE,($99CA) DE=*99CA.
9112 LD A,C A=C.
9113 ADD A,E A+=E.
9114 JR NC,$9117 Jump to 9117 if D is higher.
9116 INC D Increment D by one.
9117 LD E,A E=A.
9118 LD A,(DE) A=*DE.
9119 LD DE,$0006 DE=0006.
911C LD (IX+$04),A Write A to *IX+04.
911F ADD IX,DE IX+=DE.
9121 DJNZ $911C Decrease counter by one and loop back to 911C until counter is zero.
9123 INC HL Increment HL by one.
9124 JR $9103 Jump to 9103.
Prev: 90A2 Up: Map Next: 9126