h6. [[OS SWI Calls]] h6(. » [[OS_SpriteOp]] h6((. » OS_SpriteOp 10 - Load sprite file h2. OS_SpriteOp 10 - Load sprite file h5. (SWI &2E) |_<^{width:4em}. Entry | | |<^. R0 |<^. 10 (Reason code) + [[OS_SpriteOp|Area value]]| |<^. R1 |<^. Unused/[[Format Of Sprite Area|Sprite area]] (as defined by area value in R0) | |<^. R2 |<^. Sprite file name | |_<^{width:4em}. Exit | | |\2<^. All registers preserved| h4. Use This call will erase the contents of sprite area R1 and replace it with the contents of sprite file R2. h4. Notes When using your own sprite area, make sure you initialise it first using [[OS_SpriteOp 9]]. See also [[OS_SpriteOp 11]] if you want to merge a file into an area instead of completely overwriting the destination, and [[OS_SpriteOp 12]] if you want to save an area out to disc. h4. See also * [[Format Of Sprite]] * [[Format Of Sprite Area]] * [[OS_SpriteOp]] * [[OS_SpriteOp 9|OS_SpriteOp 9 - Initialise sprite area]] * [[OS_SpriteOp 11|OS_SpriteOp 11 - Merge sprite file]] * [[OS_SpriteOp 12|OS_SpriteOp 12 - Save sprite file]]