Prev: BF35 Up: Map Next: BF94
BF87: Unused: Apply 3-Wide Sprite Attributes
Unused routine to apply colour attributes for a 3-wide sprite. Handles both the overlay buffer and screen attributes.
Input
D Bit 0: 01 = two columns wide, 00 = one column wide
E Sprite X position
HL Screen buffer address
Unused_Apply_3Wide_Attributes BF87 LD C,$58 Set C to 58 (overlay attribute buffer base high byte).
BF89 PUSH HL Stash the screen address on the stack.
BF8A CALL $BF94 Call Unused_Write_3Wide_Attributes to apply the overlay buffer attributes.
BF8D POP HL Restore the screen address from the stack.
BF8E LD C,$F8 Set C to F8 (screen attribute buffer base high byte).
BF90 CALL $BF94 Call Unused_Write_3Wide_Attributes to apply the screen attributes.
BF93 RET Return.
Prev: BF35 Up: Map Next: BF94