Prev: 41467 Up: Map Next: 41507
41500: Read Sprite Size
Used by the routine at DrawShipTop.
Reads the width and the number of rows from the header of a sprite.
Input
DE Address of the sprite
Output
B Number of rows
DE Address of the first row of data
H Width in bytes
ReadSpriteSize 41500 LD A,(DE) Fetch the width.
41501 LD H,A Store it in H.
41502 INC DE Move on to the number of rows.
41503 LD A,(DE) Fetch it.
41504 LD B,A Store it in B.
41505 INC DE Move on to the data.
41506 RET Return.
Prev: 41467 Up: Map Next: 41507