Hello; I'm trying to insert a variable into a long appvar without overwriting anything.
So I could write this; But it's a bit laborious:
Code:
Now x would be inserted at the 5th byte.
But as you can see it’s a bit long...
Do you have any better idea?
Thank you!
So I could write this; But it's a bit laborious:
Code:
sum(0)
sum(2, "appvar" ‚"r+")→S
// shift everything
For(a,0,2000)
2000-a→b // now b counts down
sum(10,b+5,0,S)
sum(6,S)→C
sum(7,C,S)
End
sum(10,5,0,S) // insert x
sum(6, x,S)
Now x would be inserted at the 5th byte.
But as you can see it’s a bit long...
Do you have any better idea?
Thank you!