Prev: 26359 Up: Map Next: 26382
26372: Convert Attribute Address To Screen Buffer Address
Input
HL Attribute buffer address
Output
HL Screen buffer address
ConvertAttributeToScreenBufferAddress 26372 LD A,H Copy the screen address high byte to A.
26373 SUB 88 Subtract 88 (start of attribute area offset).
26375 ADD A,A Multiply by 8.
26376 ADD A,A
26377 ADD A,A
26378 ADD A,64 Add 64 to set the base attribute area.
26380 LD H,A Update the high byte of the address.
26381 RET Return.
Prev: 26359 Up: Map Next: 26382