Prev: 62740 Up: Map Next: 62774
62757: Attribute Down
Used by the routine at Drawing.
Moves the attribute address one row down. A high byte of 90 means the step passed the end of the attribute file.
AttributeDown 62757 PUSH AF Keep the colour and step the attribute address down one row.
62758 PUSH DE
62759 LD DE,32
62762 ADD HL,DE
62763 LD A,H Leave the new row in place when it is still on screen, and fall through when it is not.
62764 CP 90
62766 JR NZ,62770
62768 AND A Clear the carry before the row is stepped back.
62769 SBC HL,DE Step back one row (32) because the step left the attribute file.
62771 POP DE Restore the pen and the colour from the stack.
62772 POP AF
62773 RET Return.
View the equivalent code in;
Prev: 62740 Up: Map Next: 62774