How would you write a 1 byte integer to an appvar in ICE? I tried doing it, but it just wrote the number 9 to the appvar as 09 (which is hexadecimal). If I can only write hexadecimal to an appvar, then how would I read a byte from the appvar in hexadecimal? And, does "seeking a variable to an offset" change the actual offset or do something else?
Thank you in advance!
An appvar is like an array of bytes; the offset is your "cursor".
The type of data you get when you read it from the appvar depends on the pointer you are storing the data in.
To your question about hexadecimal numbers: The number is the same, you just display it differently.

I'll give you an example:

sum(0)          //close all slots
sum(1,"appvar","w+")→S    //opens appvar for writing and reading and stores the slot number into S

//lets kreate a few variables to store them into the appvar

sum(7,A,S)    //stores only one byte into the appvar at the position of the offset
sum(4,L1+5,3,1,S)     //stores 3 bytes beginning from *{L1+5} into the appvar
sum(4,Str1,5,1,S)      //stores 5 bytes (chars) from Str1 into the appvar

// lets read sth. (position of L1 was 1)
sum(10,1,0,S)     //puts the offset to 1; for orgin I always use 0
sum(5,L1,3,1,S)       //reads 3 bytes into L1

// to get the offset use sum(14
// use sum(15 to put the offset to 0

see for more information about opening appvars

I think the best way to learn this is to try it out: you can download Hexaedit to look into an appvar and see what you have changed
(WARNING: There are some bugs that sometimes your calculator will reset, but if you are using cesium this shouldn't be a problem)

this could also be helpful:

Sorry if my English is not very well, but I hope it can help you Smile
Thank you!
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum