Prev: 8AD3 Up: Map Next: 8AF5
8AE4: Move an attribute address down a row
Adds 32 to HL, unless that would move it off the bottom of the attribute file.
8AE4 PUSH AF Save AF and DE
8AE5 PUSH DE
8AE6 LD DE,$0020 DE = 32, the width of one attribute row
8AE9 ADD HL,DE Move HL down a row
8AEA LD A,H Did that go past the bottom of the attribute file?
8AEB CP $5A
8AED JR NZ,$8AF1
8AEF AND A If so, undo the move: stay on the bottom row
8AF0 SBC HL,DE
8AF2 POP DE Restore DE and AF
8AF3 POP AF
8AF4 RET
Prev: 8AD3 Up: Map Next: 8AF5