Prev: EDFE Up: Map Next: EE62
EE00: Routine at EE00
Used by the routine at Update_Room00.
Input
Output
_ee00 EE00 LD A,(Flag_BaddyInit)
EE03 OR A
EE04 JR NZ,_ee00_0
EE06 LD A,$01
EE08 LD (Flag_BaddyInit),A
EE0B LD A,$64
EE0D LD ($EDFF),A
EE10 LD A,$30
EE12 LD ($EDFE),A
EE15 LD H,A
EE16 LD L,$88
EE18 JR _ee00_2
_ee00_0 EE1A LD A,($EDFF)
EE1D OR A
EE1E JR Z,_ee00_1
EE20 DEC A
EE21 LD ($EDFF),A
EE24 RET
_ee00_1 EE25 LD A,($EDFE)
EE28 LD H,A
EE29 LD L,$88
EE2B CP $70
EE2D JR Z,_ee00_3
EE2F LD (BitmapX),HL
EE32 LD A,$7F
EE34 CALL Bitmap16Draw
EE37 LD A,H
EE38 ADD A,$10
EE3A LD (BitmapY),A
EE3D LD A,$80
EE3F CALL Bitmap16Draw
EE42 INC H
EE43 INC H
EE44 LD A,H
EE45 LD ($EDFE),A
_ee00_2 EE48 LD (BitmapX),HL
EE4B LD A,$7F
EE4D CALL Bitmap16Draw
EE50 LD A,H
EE51 ADD A,$10
EE53 LD H,A
EE54 LD (BitmapY),A
EE57 LD A,$80
EE59 CALL Bitmap16Draw
_ee00_3 EE5C LD B,$02
EE5E CALL Wally_HitTest
EE61 RET
Prev: EDFE Up: Map Next: EE62