Prev: 6910 Up: Map Next: 692B
691B: Colourise Sprite
Used by the routine at 6988.
Input
A Sprite data
B' Sprite block counter
C' Sprite attribute
D' Sprite Y position
E' Sprite X position
HL' Background buffer store
HL Attribute buffer pointer
ColouriseSprite 691B INC B Increment the sprite block counter in B' by one.
691C LD (HL),A Write the sprite data to the sprite background buffer.
691D INC HL Increment the sprite background buffer by one.
691E LD (HL),E Write the sprite X position to the sprite background buffer.
691F INC HL Increment the sprite background buffer by one.
6920 LD (HL),D Write the sprite Y position to the sprite background buffer.
6921 INC HL Increment the sprite background buffer by one.
6922 CP $07 Check if this is a special sprite (type 07).
6924 LD A,C Load the sprite attribute from C'.
6925 EXX Switch back to the normal registers.
6926 LD (HL),A Write the sprite attribute to the attribute buffer.
6927 RET NZ Return if this isn't a special type 07 sprite (from line 6922).
6928 JP $73F2 Jump to 73F2.
Prev: 6910 Up: Map Next: 692B