Prev: 57394 Up: Map Next: 57625
57541: COLOUR_GAMEPLAY_AREA
Used by the routine at L57625.
L57541 57541 LD HL,22530 Point HL at first visible attribute of gameplay area
57544 LD DE,22531
57547 LD A,(23042) Load A with second attribute of first row of status area
57550 PUSH AF
57551 LD A,16 Prepare to loop 16 times
L57541_0 57553 PUSH AF
57554 LD A,(HL) Get first visible ATTR value
57555 LDI Set ATTRs for one row of gameplay area
57557 LDI
57559 LDI
57561 LDI
57563 LDI
57565 LDI
57567 LDI
57569 LDI
57571 LDI
57573 LDI
57575 LDI
57577 LDI
57579 LDI
57581 LDI
57583 LDI
57585 LDI
57587 LDI
57589 LDI
57591 LDI
57593 LDI
57595 LDI
57597 LDI
57599 LDI
57601 LDI
57603 LDI
57605 LDI
57607 LDI
57609 LD BC,5 Point HL and DE at the first and second bytes of the next row
57612 ADD HL,BC
57613 EX DE,HL
57614 ADD HL,BC
57615 EX DE,HL
57616 LD (HL),A
57617 POP AF
57618 DEC A
57619 JP NZ,L57541_0 Loop 16 times
57622 POP AF
57623 LD (HL),A
57624 RET
Prev: 57394 Up: Map Next: 57625