Difference between revisions of "SaveAddress"
Jump to navigation
Jump to search
m (Xifanie moved page Event Instruction C4 to SaveAddress) |
|||
Line 30: | Line 30: | ||
== Byte Length : Byte (unsigned) == | == Byte Length : Byte (unsigned) == | ||
Amount of bytes to save. 001 to 004. | Amount of bytes to save. 001 to 004. | ||
+ | |||
+ | == Useful SaveAddress Commands == | ||
+ | |||
+ | [[Useful SaveAddress Commands]] |
Revision as of 00:01, 24 June 2023
Contents
{C4} SaveAddress
SaveAddress(xVR,xVALU,xVA,LEN)
Saves a variable to a given address. Works essentially the same as sb/sh/sw, but using variables.
Comparison: sw rVR, 0xVALU(rVA)
See also: {C1} LoadAddress ― {C2} UnitAddress ― {C3} WorldUnitAddress
Variable : Byte (hex)
ID of the Variable which will be stored.
Warning: Only x00-x7F (words) are valid with this instruction!
Click here for the list of Variables
Immediate Value : Half-Word (hex)
Adds this number to the Variable Address to determine which bytes to store.
Variable Address : Byte (hex)
ID of the Variable which holds the main memory address to save to.
Warning: Only x00-x7F (words) are valid with this instruction!
Click here for the list of Variables
Byte Length : Byte (unsigned)
Amount of bytes to save. 001 to 004.