h6. [[OS SWI Calls]] h6(. » [[OS_SpriteOp]] h6((. » OS_SpriteOp 57 - Insert/delete rows h2. OS_SpriteOp 57 - Insert/delete rows h5. (SWI &2E) |_<^{width:4em}. Entry | | |<^. R0 |<^. 57 (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) | |<^. R3 |<^. Base row number | |<^. R4 |<^. Row count | |_<^{width:4em}. Exit | | |\2<^. All registers preserved| h4. Use This call inserts or deletes rows from the given sprite. To insert rows, set R3 to the row number to insert the new row(s) underneath, and set R4 to the row count. To delete rows, set R3 to the index of the bottommost row to delete, and set R4 to -(row count). h4. Notes Sprite rows are numbered from the bottom of the sprite, starting at zero. See also [[OS_SpriteOp 31]] to insert a single row, or [[OS_SpriteOp 32]] to delete a single row. h4. See also * [[Format Of Sprite]] * [[Format Of Sprite Area]] * [[OS_SpriteOp]] * [[OS_SpriteOp 31]] * [[OS_SpriteOp 32]]