EA60: Room Event : Balloon Help.
Handler_BalloonHelp |
EA60 |
LD A,(Flag_BaddyInit) |
|
EA63 |
OR A |
|
EA64 |
JR NZ,Handler_BalloonHelp_0 |
|
EA66 |
LD A,$01 |
|
EA68 |
LD (Flag_BaddyInit),A |
|
EA6B |
LD L,$18 |
|
EA6D |
LD H,$80 |
|
EA6F |
LD (BitmapX),HL |
|
EA72 |
LD A,$73 |
|
EA74 |
CALL Bitmap16Draw |
|
EA77 |
LD A,$90 |
|
EA79 |
LD (BitmapY),A |
|
EA7C |
LD A,$74 |
|
EA7E |
CALL Bitmap16Draw |
|
EA81 |
RET |
Handler_BalloonHelp_0 |
EA82 |
LD DE,(Wally_X) |
|
EA86 |
LD A,$18 |
|
EA88 |
SUB E |
|
EA89 |
SUB $01 |
|
EA8B |
CP $FE |
|
EA8D |
RET C |
|
EA8E |
LD A,D |
|
EA8F |
CP $98 |
|
EA91 |
RET NZ |
|
EA92 |
LD A,(Pocket1) |
|
EA95 |
CP $11 |
|
EA97 |
JR Z,Handler_BalloonHelp_1 |
|
EA99 |
LD A,(Pocket2) |
|
EA9C |
CP $11 |
|
EA9E |
RET NZ |
Handler_BalloonHelp_1 |
EA9F |
LD A,($F18B) |
|
EAA2 |
OR A |
|
EAA3 |
RET NZ |
|
EAA4 |
LD B,$50 |
|
EAA6 |
LD C,$80 |
Handler_BalloonHelp_2 |
EAA8 |
PUSH BC |
|
EAA9 |
LD L,$18 |
|
EAAB |
LD H,C |
|
EAAC |
LD (BitmapX),HL |
|
EAAF |
LD A,$73 |
|
EAB1 |
CALL Bitmap16Draw |
|
EAB4 |
DEC H |
|
EAB5 |
LD (BitmapX),HL |
|
EAB8 |
LD A,$73 |
|
EABA |
CALL Bitmap16Draw |
|
EABD |
LD A,H |
|
EABE |
ADD A,$11 |
|
EAC0 |
LD H,A |
|
EAC1 |
LD (BitmapX),HL |
|
EAC4 |
LD A,$74 |
|
EAC6 |
CALL Bitmap16Draw |
|
EAC9 |
DEC H |
|
EACA |
LD (BitmapX),HL |
|
EACD |
LD A,$74 |
|
EACF |
CALL Bitmap16Draw |
|
EAD2 |
CALL Wally_Erase |
|
EAD5 |
DEC H |
|
EAD6 |
LD (Wally_X),HL |
|
EAD9 |
LD A,(Wally_Frame) |
|
EADC |
CALL Wally_Draw |
|
EADF |
CALL Pause_Short |
|
EAE2 |
POP BC |
|
EAE3 |
DEC C |
|
EAE4 |
DJNZ Handler_BalloonHelp_2 |
|
EAE6 |
LD A,$01 |
|
EAE8 |
LD ($F18B),A |
|
EAEB |
RET |