h6. [[OS SWI Calls]] h6(. » [[OS_SpriteOp]] h6((. » OS_SpriteOp 40 - Read sprite info h2. OS_SpriteOp 40 - Read sprite info h5. (SWI &2E) |_<^{width:4em}. Entry | | |<^. R0 |<^. 40 (Reason code) + [[OS_SpriteOp|Area value]]| |<^. R1 |<^. Unused/[[Format Of Sprite Area|Sprite area]] (as defined by area value in R0) | |<^. R2 |<^. Sprite name/[[Format Of Sprite|pointer]] (as defined by area value in R0) | |_<^{width:4em}. Exit | | |<^. R3 |<^. Sprite width in pixels | |<^. R4 |<^. Sprite height in pixels | |<^. R5 |<^. 0/1 for whether a mask is present | |<^. R6 |<^. [[Sprite Mode Word]] | |\2<^. All other registers preserved| h4. Use This call is used to read the details of a sprite. h4. Notes This call will return an error if the kernel does not understand the format of the sprite mode word, or if the sprite uses an unrecognised numbered mode. h4. See also * [[Format Of Sprite]] * [[Format Of Sprite Area]] * [[OS_SpriteOp]] * [[Sprite Mode Word]]