h6. [[OS SWI Calls]] h6(. » [[OS_SpriteOp]] h6((. » OS_SpriteOp 62 - Read save area size h2. OS_SpriteOp 62 - Read save area size h5. (SWI &2E) |_<^{width:4em}. Entry | | |<^. R0 |<^. 62 (Reason code) + [[OS_SpriteOp|Area value]]| |<^. R1 |<^. Unused/[[Format Of Sprite Area|Sprite area]] (as defined by area value in R0) | |/2<^. R2 |<^. Sprite name/[[Format Of Sprite|pointer]] (as defined by area value in R0) | |<^. Or 0 for the screen | |_<^{width:4em}. Exit | | |<^. R3 |<^. Size of save area | |\2<^. All other registers preserved| h4. Use This call is used to measure the required size of the [[VDU Save Area]] that is to be created for use with [[OS_SpriteOp 60]] or [[OS_SpriteOp 61]]. Redirecting output to a sprite without using a save area is strongly discouraged. The reason being that it can cause issues if you either directly or indirectly call a SWI which wants to use redirection internally (e.g. the font manager makes use of redirection to build the font cache). Save areas are small (currently under 512 bytes), so there is little reason to not use them. h4. Notes After allocating the memory for the save area, it must be initialised by storing the value 0 in the first word. At present the save area size and format is fixed for any given OS version, however software should not rely on this and should instead use this call to measure the required size for each sprite they wish to use a save area with. h4. See also * [[OS_SpriteOp]] * [[OS_SpriteOp 60]] * [[OS_SpriteOp 61]] * [[VDU Save Area]]