Dset: Difference between revisions
Jump to navigation
Jump to search
imported>Dddaaannn (New reference article: dset) |
imported>Felice Enellen m (→See also: formatting) |
||
| Line 15: | Line 15: | ||
== See also == | == See also == | ||
* [[Cartdata|cartdata]] | * [[Cartdata|<code>cartdata()</code>]] | ||
* [[Dget|dget]] | * [[Dget|<code>dget()</code>]] | ||
[[Category:Reference]] | [[Category:Reference]] | ||
[[Category:API]] | [[Category:API]] | ||
Latest revision as of 12:35, 15 June 2018
dset( index, value )
- Sets a value in persistent cartridge data.
- index
-
- The index of the value.
- value
-
- The new value to set.
A cartridge can store 64 numbers (256 bytes) of data to persistent storage. This data is available the next time the user runs the cart, and persists in the player even if the cartridge is replaced with a new version of the same cartridge.
The dget() function retrieves the value for the given index (0 to 63).
Examples
See cartdata() for an example.