Prev: AAD4 Up: Map Next: AC24
AAED: Routine at AAED
Used by the routines at 9D91, 9E72, A54F, A858, A9BE, AD07, PlayerMovement and GamePlay_Start.
AAED LD A,E
AAEE XOR (IX+$03)
AAF1 RET NZ
AAF2 LD A,D
AAF3 XOR (IX+$04)
AAF6 RET
AAF7 LD A,E
AAF8 CP (IX+$03)
AAFB RET Z
AAFC LD A,D
AAFD CP (IX+$04)
AB00 RET
This entry point is used by the routines at 9B0D, 9D91, A18C, A305, A3B7, A737 and A858.
AB01 LD A,($96B5)
AB04 AND A
AB05 RET NZ
AB06 LD A,($9702)
AB09 SUB $10
AB0B CP $20
AB0D RET NC
This entry point is used by the routine at 9E72.
AB0E LD HL,$0F0C
AB11 CP $10
AB13 JR C,$AB18
AB15 LD HL,$0F1C
AB18 LD A,($9705)
AB1B SUB (IX+$03)
AB1E JR C,$AB2C
AB20 CP C
AB21 RET NC
AB22 LD A,($9706)
AB25 SUB (IX+$04)
AB28 JR C,$AB31
AB2A CP H
AB2B RET
AB2C NEG
AB2E CP L
AB2F JR $AB21
AB31 NEG
AB33 CP B
AB34 JR $AB2B
This entry point is used by the routines at 9E72, A4D7, A54F and AD07.
AB36 LD A,($9707)
AB39 SUB $47
AB3B AND A
AB3C RET NZ
This entry point is used by the routine at 9E72.
AB3D LD A,($9703)
AB40 SUB (IX+$01)
AB43 AND A
AB44 RET NZ
AB45 CALL $AB01
AB48 RET NC
AB49 LD A,($9702)
AB4C SUB $10
AB4E CP $10
AB50 JR C,$AB5E
AB52 BIT 3,A
AB54 JR NZ,$AB6A
AB56 LD A,($9705)
AB59 SUB (IX+$03)
AB5C JR NC,$AB68
AB5E BIT 0,D
AB60 LD A,$01
AB62 JR NZ,$AB65
AB64 INC A
AB65 LD ($9704),A
AB68 SCF
AB69 RET
AB6A LD A,($9705)
AB6D SUB (IX+$03)
AB70 JR C,$AB68
AB72 JR $AB5E
AB74 CALL $A630
AB77 CALL StoreEntity
AB7A LD A,$10
AB7C LD ($96AD),A
AB7F CALL $AFE8
AB82 LD BC,$170F
AB85 CALL $B81C
AB88 CALL $ABDE
AB8B LD (IX+$03),E
AB8E LD (IX+$04),D
AB91 CALL $AC0E
AB94 LD A,(IX+$00)
AB97 RRCA
AB98 RRCA
AB99 AND $01
AB9B LD D,A
AB9C LD BC,$0F0C
AB9F CALL $AB36
ABA2 JR NC,$ABB6
ABA4 LD A,($9702)
ABA7 AND $08
ABA9 JR Z,$ABDA
ABAB LD A,$40
ABAD LD BC,$AC24
ABB0 CALL $ABEF
ABB3 CALL $BF17
ABB6 CALL $9D41
ABB9 JP NC,$AD46
ABBC LD C,A
ABBD LD A,($9703)
ABC0 CP (IX+$01)
ABC3 JP NZ,$AD46
ABC6 LD A,C
ABC7 CALL $BF3D
ABCA LD A,(IX+$05)
ABCD PUSH AF
ABCE LD (IX+$05),$46
ABD2 CALL $AD46
ABD5 POP AF
ABD6 LD (IX+$05),A
ABD9 RET
ABDA LD A,$C0
ABDC JR $ABAD
ABDE CALL $AAED
ABE1 RET NZ
ABE2 LD BC,$AC24
ABE5 LD A,($9695)
ABE8 AND $03
ABEA LD L,A
ABEB LD H,$00
ABED ADD HL,BC
ABEE LD A,(HL)
ABEF LD (IX+$06),A
ABF2 AND A
ABF3 JP M,$AC08
ABF6 SET 2,(IX+$00)
ABFA LD A,($5C78)
ABFD AND $03
ABFF LD L,A
AC00 LD H,$00
AC02 ADD HL,BC
AC03 LD A,(HL)
AC04 LD (IX+$07),A
AC07 RET
AC08 RES 2,(IX+$00)
AC0C JR $ABFA
This entry point is used by the routine at A858.
AC0E LD A,($9693)
AC11 AND $01
AC13 RET NZ
AC14 LD A,(IX+$00)
AC17 LD C,A
AC18 INC A
AC19 AND $03
AC1B LD B,A
AC1C LD A,C
AC1D AND $FC
AC1F OR B
AC20 LD (IX+$00),A
AC23 RET
Prev: AAD4 Up: Map Next: AC24