Prev: 66F7 Up: Map Next: 670E
6704: Convert Attribute Address To Screen Buffer Address
Input
HL Attribute buffer address
Output
HL Screen buffer address
ConvertAttributeToScreenBufferAddress 6704 LD A,H Copy the screen address high byte to A.
6705 SUB $58 Subtract 58 (start of attribute area offset).
6707 ADD A,A Multiply by 08.
6708 ADD A,A
6709 ADD A,A
670A ADD A,$40 Add 40 to set the base attribute area.
670C LD H,A Update the high byte of the address.
670D RET Return.
Prev: 66F7 Up: Map Next: 670E