AA38: Helicopter related
helicopter_stuff |
AA38 |
LD A,B |
|
AA39 |
CP $03 |
|
AA3B |
RET NZ |
|
AA3C |
LD A,(IY+$4F) |
|
AA3F |
SUB (IY+$4E) |
|
AA42 |
LD D,$00 |
|
AA44 |
LD H,D |
|
AA45 |
LD L,D |
|
AA46 |
LD E,A |
|
AA47 |
LD A,($A23F) |
|
AA4A |
LD B,$08 |
|
AA4C |
AND $E0 |
helicopter_stuff_0 |
AA4E |
RLA |
|
AA4F |
JR NC,helicopter_stuff_1 |
|
AA51 |
ADD HL,DE |
helicopter_stuff_1 |
AA52 |
ADD HL,HL |
|
AA53 |
DJNZ helicopter_stuff_0 |
|
AA55 |
LD A,H |
|
AA56 |
RRA |
|
AA57 |
LD ($AA8D),A |
|
AA5A |
LD A,$00 |
|
AA5C |
SUB (IY+$4E) |
|
AA5F |
LD ($AA77),A |
|
AA62 |
LD B,$05 |
|
AA64 |
LD A,($A234) |
|
AA67 |
AND $01 |
|
AA69 |
LD HL,($5D08) |
|
AA6C |
JR Z,loop_aa71 |
|
AA6E |
LD HL,($5D0A) |
loop_aa71 |
AA71 |
LD E,(HL) |
|
AA72 |
INC HL |
|
AA73 |
LD D,(HL) |
|
AA74 |
INC HL |
|
AA75 |
LD A,(DE) |
|
AA76 |
ADD A,$00 |
|
AA78 |
INC DE |
|
AA79 |
PUSH IY |
|
AA7B |
PUSH HL |
|
AA7C |
PUSH BC |
|
AA7D |
CALL sub_AA94 |
|
AA80 |
POP BC |
|
AA81 |
POP HL |
|
AA82 |
POP IY |
|
AA84 |
DJNZ loop_aa71 |
|
AA86 |
LD E,(HL) |
|
AA87 |
INC HL |
|
AA88 |
LD D,(HL) |
|
AA89 |
XOR A |
|
AA8A |
PUSH IY |
|
AA8C |
LD A,$00 |
|
AA8E |
CALL sub_AA94 |
|
AA91 |
POP IY |
|
AA93 |
RET |
sub_AA94 |
AA94 |
LD BC,$0000 |
|
AA97 |
NEG |
|
AA99 |
LD ($933E),A |
|
AA9C |
LD A,(DE) |
|
AA9D |
INC DE |
|
AA9E |
LD L,A |
|
AA9F |
LD H,$00 |
|
AAA1 |
AND A |
|
AAA2 |
JP P,helicopter_stuff_2 |
|
AAA5 |
DEC H |
helicopter_stuff_2 |
AAA6 |
ADD HL,BC |
|
AAA7 |
EX DE,HL |
|
AAA8 |
LD B,(HL) |
|
AAA9 |
RLC B |
|
AAAB |
RLC B |
|
AAAD |
RLC B |
|
AAAF |
LD A,D |
|
AAB0 |
AND A |
|
AAB1 |
LD A,E |
|
AAB2 |
LD C,$00 |
|
AAB4 |
JP M,helicopter_stuff_3 |
|
AAB7 |
RET NZ |
|
AAB8 |
CP $80 |
|
AABA |
JP NC,draw_object_right_3 |
|
AABD |
ADD A,B |
|
AABE |
JP draw_object_left_1 |
helicopter_stuff_3 |
AAC1 |
ADD A,B |
|
AAC2 |
RET NC |
|
AAC3 |
JP draw_object_left_1 |