Prev: 6BFA Up: Map Next: 6C20
6C0F: Convert a sprite location or display file address into an attribute file address
Used by the routines at 6000, 651E, 655B, 65A1, 663D, 673A, 6821, 686A, 6B21, 6B75, 6BD6, 6C20, 6C68 and 6CC2.
Input
HL Sprite location or display file address
Output
HL' Attribute file address
6C0F PUSH HL Push the address/location onto the stack.
6C10 EXX Exchange registers.
6C11 POP HL Drop the address/location off the stack into HL'.
6C12 LD A,H Set HL' to the corresponding attribute file address.
6C13 AND $18
6C15 SRA A
6C17 SRA A
6C19 SRA A
6C1B ADD A,$58
6C1D LD H,A
6C1E EXX Exchange registers.
6C1F RET
Prev: 6BFA Up: Map Next: 6C20