Omnimaga

Calculator Community => TI Calculators => Axe => Topic started by: hardyboy16jm on November 03, 2012, 11:37:33 pm

Title: How to use the Copy and Fill commands
Post by: hardyboy16jm on November 03, 2012, 11:37:33 pm
How do I use the Copy and Fill commands? Are they related? Please go in depth.
Title: Re: How to use the Copy and Fill commands
Post by: squidgetx on November 03, 2012, 11:39:54 pm
Fill(PTR,SIZE) : The byte already at PTR is copied to all the bytes after it until SIZE bytes have been filled with that value. Zero is not a valid Size.
Fill(PTR,SIZE,BYTE) : SIZE bytes of data starting at PTR are filled with a value. SIZE must be greater than 1.

Copy(PTR1,PTR2,SIZE) : SIZE bytes starting from PTR1 are copied to PTR2 onwards. Zero is not a valid Size.

This is what the commands index says. I think it's pretty straightforward unless you don't understand pointers. If you don't understand pointers, check out this explanation (http://ourl.ca/9165/180882), it's pretty good. (You can find other excellent tutorials and explanations of stuff here (http://ourl.ca/9290)) If you still have questions, feel free to clarify/respond.