Routines |
Prev: 6BF6 | Up: Map | Next: 6C2D |
Used by the routine at GameInit.
|
||||
6BFE | LD BC,$7811 | BC=MapPoints. | ||
6C01 | LD HL,($5E05) | HL=PlayerMapPosition. | ||
6C04 | LD DE,$0060 | DE=0060. | ||
6C07 | AND A | Clear the carry flag. | ||
6C08 | SBC HL,DE | |||
6C0A | EX DE,HL | |||
6C0B | EX DE,HL | |||
6C0C | LD A,(BC) | |||
6C0D | INC BC | |||
6C0E | LD D,A | D=A. | ||
6C0F | CALL $6B30 | Call 6B30. | ||
6C12 | EX DE,HL | |||
6C13 | AND A | |||
6C14 | SBC HL,DE | |||
6C16 | JR NC,$6C2A | |||
6C18 | INC BC | Increment BC twice (move onto the next record). | ||
6C19 | INC BC | |||
6C1A | LD HL,$7CD6 | HL=7CD6 (one byte past the end of MapPoints). | ||
6C1D | AND A | |||
6C1E | SBC HL,BC | |||
6C20 | JR NZ,$6C0B | |||
6C22 | LD BC,$7811 | Write MapPoints to CurrentObject. | ||
6C25 | LD ($5E19),BC | |||
6C29 | RET | Return. | ||
6C2A | DEC BC | Decrease BC by one. | ||
6C2B | JR $6C25 | Jump to 6C25. |
Prev: 6BF6 | Up: Map | Next: 6C2D |