A89C: Returns the lanes that cars can spawn in
get_spawn_lanes |
A89C |
LD A,($A240) |
|
A89F |
ADD A,$42 |
|
A8A1 |
ADD A,C |
|
A8A2 |
LD L,A |
|
A8A3 |
LD H,$EE |
|
A8A5 |
LD A,(HL) |
|
A8A6 |
AND A |
|
A8A7 |
LD BC,$0104 |
|
A8AA |
RET Z |
|
A8AB |
LD E,A |
|
A8AC |
AND $C1 |
|
A8AE |
CP $C1 |
|
A8B0 |
RET Z |
|
A8B1 |
CP $41 |
|
A8B3 |
LD BC,$0103 |
|
A8B6 |
RET Z |
|
A8B7 |
LD A,E |
|
A8B8 |
AND $82 |
|
A8BA |
ADD A,A |
|
A8BB |
JR NC,get_spawn_lanes_0 |
|
A8BD |
LD BC,$0204 |
|
A8C0 |
RET NZ |
|
A8C1 |
LD BC,$0103 |
|
A8C4 |
RET |
get_spawn_lanes_0 |
A8C5 |
LD BC,$0102 |
|
A8C8 |
RET Z |
|
A8C9 |
LD BC,$0304 |
|
A8CC |
RET |