![]() |
Unused |
| Prev: BEB2 | Up: Map | Next: BEE0 |
|
Unused routine to apply colour attributes for a sprite. Handles both the overlay buffer attributes and the screen attributes.
|
||||||||||||
| Unused_Apply_Attributes | BECA | LD C,$58 | Set C to 58 (overlay attribute buffer base high byte). | |||||||||
| BECC | LD A,(IX+$00) | Load the sprite X position from *IX+00. | ||||||||||
| BECF | CP $FF | Jump to Unused_Apply_Screen_Attributes if the X position is FF (sprite offscreen). | ||||||||||
| BED1 | JR Z,$BED8 | |||||||||||
| BED3 | PUSH HL | Stash the screen address on the stack. | ||||||||||
| BED4 | CALL $BEE0 | Call Unused_Write_Attribute_Cells to apply the overlay buffer attributes. | ||||||||||
| BED7 | POP HL | Restore the screen address from the stack. | ||||||||||
| Unused_Apply_Screen_Attributes | BED8 | LD C,$F8 | Set C to F8 (screen attribute buffer base high byte). | |||||||||
| BEDA | LD E,$02 | Set E to 02 (attribute INK colour). | ||||||||||
| BEDC | CALL $BEE0 | Call Unused_Write_Attribute_Cells to apply the screen attributes. | ||||||||||
| BEDF | RET | Return. | ||||||||||
| Prev: BEB2 | Up: Map | Next: BEE0 |