|This article has recently been imported from the German C64-Wiki and not been translated yet. Please come back at a later time to read the English version of this article or help us.|
|Abbreviation:||S, P, R SHIFT+A|
|Token code:||$fe $16 (254 22)|
in BASIC ROM:
|List of all BASIC keywords|
Type: Function General Programming-Syntax: SPRSAV <target>,<destination>
The 2 possible parameters <from> and <to> have multiple meanings here, either.
- as a numeric expression the number of the sprite (values from 1 to 8 are allowed, otherwise the error message will occur) ) or
- for <of> as a stringn expression and for <to> only as the name of a string variable.
Less or more than 2 parameters lead to an abort with.
The data stored in the character string variable corresponds to the SSHAPE data format, but for a fixed extension of 24×21 pixels. This results in a character string length of 67 bytes.
SPRSAV always expects, when a variable is specified for the parameter <of>, that the content actually has the required format. If this is not the case, the command does not complain, but undesired and unexpected results occur (the appearance of the sprite is corrupted).
Examples[edit | edit source]
Copies the sprite grid data from sprite 3 to sprite 4.
Puts the sprite 4 data into string variable S$.
Transfers the data from string variable S$ into sprite 5.