Prev: D894 Up: Map Next: D99B
D97E: Routine at D97E
Used by the routine at StartGame.
D97E LD HL,$E270 HL=E270.
D981 LD D,$01 D=01.
D983 LD B,$04 B=04.
D985 PUSH BC Stash BC on the stack.
D986 LD B,$05 B=05.
D988 LD A,(HL) Jump to D999 if *HL is not equal to D.
D989 CP D
D98A JR NZ,$D999
D98C INC HL Increment HL by one.
D98D INC D Increment D by one.
D98E DJNZ $D988 Decrease counter by one and loop back to D988 until counter is zero.
D990 INC HL Increment HL by two.
D991 INC HL
D992 POP BC Restore BC from the stack.
D993 DJNZ $D985 Decrease counter by one and loop back to D985 until counter is zero.
D995 POP BC Restore BC from the stack.
D996 JP $D894 Jump to D894.
D999 POP BC Restore BC from the stack.
D99A RET Return.
Prev: D894 Up: Map Next: D99B