These commands deal with storing values in memory and retrieving values from memory.
Stores a value in memory.
Grammar
Set ::= [
"SET",
Whitespace,
( WordValue | Identifier ),
( Whitespace, '=', Whitespace, ( Value | Identifier ) )?
';'
]
Example
Update a variable with the current 8 or 16 bit register (based on type of x). Uses the type of x to determine data size.
SET x;
Update a constant position in ram with the current 8-bit register value.
SET %F2A9;
Update a variable with a constant word value. Uses the type of x to determine data size.
SET x = %F2A9;
Update a variable with a constant byte value. Uses the type of x to determine data size.
SET x = $01;
Update a variable with another variable. Equivilent to GET y; SET x; Uses the type of x to determine data size.
SET x = y;
Sets a 16-bit value in RAM.
SET %F2A9 = y;
Sets a constant position in RAM to a constant 8-bit value.
SET %F2A9 = $03;
Sets a constant position in RAM to a constant 16-bit value.
SET %F2A9 = %63AD;