Prev: F410 Up: Map Next: F485
F470: Fill lines with an attribute using data
Used by the routines at DB63 and DCF6.
Input
HL pointer to data containing what to draw and where
F470 LD B,(HL) Get the number of times to repeat.
F471 PUSH BC Remember BC.
F472 INC HL Get the attribute.
F473 LD A,(HL)
F474 INC HL Get the number of columns.
F475 LD B,(HL)
F476 INC HL Get the number of rows.
F477 LD C,(HL)
F478 INC HL Get the X co-ordinate.
F479 LD E,(HL)
F47A INC HL Get the Y co-ordinate.
F47B LD D,(HL)
F47C PUSH HL Remember HL.
F47D CALL $E8BA Fill the lines with the attribute.
F480 POP HL Restore HL.
F481 POP BC Restore BC.
F482 DJNZ $F471 Loop round until the fill is complete.
F484 RET
Prev: F410 Up: Map Next: F485