9132: See if given path data is within range of hero.
Path_InGivenRange |
9132 |
LD A,(Stage_Compass) |
|
9135 |
CP (IX+$0A) |
|
9138 |
JR Z,Path_InGivenRange_1 |
Path_InGivenRange_0 |
913A |
OR $01 |
|
913C |
RET |
Path_InGivenRange_1 |
913D |
BIT 0,A |
|
913F |
JR Z,Path_InGivenRange_2 |
|
9141 |
LD HL,(Position_NS) |
|
9144 |
LD E,(IX+$05) |
|
9147 |
LD D,(IX+$06) |
|
914A |
JR Path_InGivenRange_3 |
Path_InGivenRange_2 |
914C |
LD HL,(Position_EW) |
|
914F |
LD E,(IX+$07) |
|
9152 |
LD D,(IX+$08) |
Path_InGivenRange_3 |
9155 |
CALL abs_hl_de |
|
9158 |
AND A |
|
9159 |
SBC HL,BC |
|
915B |
JR NC,Path_InGivenRange_0 |
|
915D |
XOR A |
|
915E |
RET |