Prev: A219 Up: Map Next: A2CE
A240: Draw Side Panel Attributes
Used by the routine at EnterRoom.
DrawSidePanelAttrs A240 LD HL,$00C0
A243 CALL AttributeAddress
A246 LD BC,$0818
A249 LD A,($5E1A)
A24C CPL
A24D AND $07
A24F CP $02
A251 JR NC,DrawSidePanelAttrs_0
A253 LD A,$44
DrawSidePanelAttrs_0 A255 LD E,A
A256 PUSH DE
DrawSidePanelAttrs_1 A257 PUSH BC
A258 PUSH HL
DrawSidePanelAttrs_2 A259 LD (HL),E
A25A INC L
A25B DJNZ DrawSidePanelAttrs_2
A25D POP HL
A25E LD BC,$0020
A261 ADD HL,BC
A262 POP BC
A263 DEC C
A264 JR NZ,DrawSidePanelAttrs_1
A266 LD HL,$90C8
A269 CALL AttributeAddress
A26C LD A,($5E1A)
A26F LD BC,$0303
A272 CALL ClearPlayArea_0
A275 INC L
A276 LD (HL),A
A277 ADD HL,DE
A278 LD BC,$0202
A27B CALL ClearPlayArea_0
A27E LD HL,$98D0
A281 CALL AttributeAddress
A284 POP DE
A285 LD (HL),E
A286 LD HL,$7DC8
A289 CALL AttributeAddress
A28C LD BC,$0603
A28F LD A,$47
A291 CALL ClearPlayArea_0
A294 LD HL,$5FC8
A297 CALL AttributeAddress
A29A LD BC,$0604
A29D LD A,$46
A29F CALL ClearPlayArea_0
A2A2 LD HL,$48C8
A2A5 CALL AttributeAddress
A2A8 LD BC,$0601
A2AB LD A,$45
A2AD CALL ClearPlayArea_0
A2B0 LD BC,$0601
A2B3 LD A,$47
A2B5 CALL ClearPlayArea_0
A2B8 LD HL,$38C8
A2BB CALL AttributeAddress
A2BE LD BC,$0601
A2C1 LD A,$43
A2C3 CALL ClearPlayArea_0
A2C6 LD BC,$0601
A2C9 LD A,$47
A2CB JP ClearPlayArea_0
Prev: A219 Up: Map Next: A2CE