I have read the commands document, but there wasn't any note on how to create a list in ICE.
If you're using ICE v2
You have to use the new DataCopy() command.
As of typing this it's not in the documentation but PT_ is adding it as I type.
The syntax is " DataCopy(Destination,DataSize,data1,data2,...)"
Destination is where you want that data put, such as L1, L2, or you can use memory pointers.
DataSize is how big each entry in the data is, use 3 for 3-byte lists.
data1,data2,etc is the actual numbers you want to be stored into the destination.
To retrieve data from a list in ICE v2, use L1(0) to get the first entry. L1(3) to get the second entry, L1(6) for the third.
You have to use positive multiples of 3 to retrieve data from a list, because each data entry is 3 bytes large.
If you use "2" in the DataSize argument of the DataCopy() command, then you use multiples of 2 to retrieve data from the list.
The maximum number sizes are:
16777215 for 3-byte entries
65535 for 2-byte entries
255 for 1-byte entries
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.
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