h6. [[OS SWI Calls]] h6(. » [[OS_SpriteOp]] h6((. » OS_SpriteOp 24 - Select sprite/Get address h2. OS_SpriteOp 24 - Select sprite/Get address h5. (SWI &2E) |_<^{width:4em}. Entry | | |<^. R0 |<^. 24 (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 | | |<^. R2 |<^. Pointer to sprite (if not system sprite area), else preserved | |\2<^. All other registers preserved| h4. Use This call has two uses, depending on the [[OS_SpriteOp|area value]]: * If the system sprite area is used, this call will select which sprite should be used by the [[OS_Plot]] sprite operations (&E8-&EF). R2 will not be updated. * If a user sprite area is used, this call will return in R2 the address of the given sprite. This makes the call useful as a method of finding the address of a sprite when you only have its name. h4. See also * [[Format Of Sprite]] * [[Format Of Sprite Area]] * [[OS_SpriteOp]]