Prev: F514 Up: Map Next: F536
F525: Attribute Down
Used by the routine at Drawing.
Moves the attribute address one row down. A high byte of 5A means the step passed the end of the attribute file.
AttributeDown F525 PUSH AF Keep the colour and step the attribute address down one row.
F526 PUSH DE
F527 LD DE,$0020
F52A ADD HL,DE
F52B LD A,H Leave the new row in place when it is still on screen, and fall through when it is not.
F52C CP $5A
F52E JR NZ,$F532
F530 AND A Clear the carry before the row is stepped back.
F531 SBC HL,DE Step back one row (20) because the step left the attribute file.
F533 POP DE Restore the pen and the colour from the stack.
F534 POP AF
F535 RET Return.
View the equivalent code in;
Prev: F514 Up: Map Next: F536