A4FF: Routine at A4FF
_a4ff_People |
A4FF |
LD A,(IX+$16) |
|
A502 |
CP $02 |
|
A504 |
JR Z,_a4ff_People_0 |
|
A506 |
CP $06 |
|
A508 |
JR NZ,_a4ff_People_1 |
_a4ff_People_0 |
A50A |
LD (IX+$0D),$01 |
_a4ff_People_1 |
A50E |
LD A,(IY+$3E) |
|
A511 |
AND $7F |
|
A513 |
ADD A,$0A |
|
A515 |
CP L |
|
A516 |
JR C,_a4ff_People_2 |
|
A518 |
LD A,L |
_a4ff_People_2 |
A519 |
AND A |
|
A51A |
JR NZ,_a4ff_People_3 |
|
A51C |
LD A,$20 |
_a4ff_People_3 |
A51E |
LD (IX+$0A),A |
|
A521 |
LD E,A |
|
A522 |
LD D,$00 |
|
A524 |
AND A |
|
A525 |
SBC HL,DE |
|
A527 |
JR Z,_a4ff_People_4 |
|
A529 |
LD A,(IX+$16) |
|
A52C |
CP $0A |
|
A52E |
JR Z,_a4ff_People_4 |
|
A530 |
LD (IX+$0D),$1E |
_a4ff_People_4 |
A534 |
LD (IX+$14),L |
|
A537 |
LD (IX+$15),H |
|
A53A |
JP Person_MoveForward_0 |