Prev: CB75 Up: Map Next: CB85
CB79: Get route
Returns the route with index A in DE.
Used by the routines at get_target and target_reached.
Input
A Index.
Output
DE Pointer to route data.
get_route CB79 ADD A,A Point DE at routes[A]
CB7A LD E,A
CB7B LD D,$00
CB7D LD HL,$7738
CB80 ADD HL,DE
CB81 LD E,(HL)
CB82 INC HL
CB83 LD D,(HL)
CB84 RET Return
Prev: CB75 Up: Map Next: CB85