So I want to set a variable from a TP program but my problem is the Variable name is too long to use the $...=.... instruction.
So I found this Karel code that seems to be working
PROGRAM SET_INI_OFS
VAR
ENTRY:INTEGER
STATUS:INTEGER
BEGIN
SET_VAR(entry, '*SYSTEM*', '$DPM_SCH[1].$GRP[1].$OFS[1].$INI_OFS', 10.0, STATUS)
END SET_INI_OFS
However instead of changing the variable to 10.0 I want to reference a register.
I'm trying to use the Karel reference manual to figure it out but i have never used Karel before so I'm not getting very far.
Can someone show me the code I need to do this?
Thanks