Prev: 27642 Up: Map Next: 27680
27663: Convert a sprite location or display file address into an attribute file address
Used by the routines at 24576, 25886, 25947, 26017, 26173, 26426, 26657, 26730, 27425, 27509, 27606, 27680, 27752 and 27842.
Input
HL Sprite location or display file address
Output
HL' Attribute file address
27663 PUSH HL Push the address/location onto the stack.
27664 EXX Exchange registers.
27665 POP HL Drop the address/location off the stack into HL'.
27666 LD A,H Set HL' to the corresponding attribute file address.
27667 AND 24
27669 SRA A
27671 SRA A
27673 SRA A
27675 ADD A,88
27677 LD H,A
27678 EXX Exchange registers.
27679 RET
Prev: 27642 Up: Map Next: 27680