0 Members and 1 Guest are viewing this topic.
alberthrocks: That is because you're trying to write data back to Str1, which is a part of the application. As I explained in my previous post, that isn't possible. You should instead write the data to RAM somewhere, in scratch RAM or in an appvar.
Also, if you access nibble data from your app, you'll need to use the alternate nibble read/write functions.
Quote from: calc84maniac on September 22, 2011, 05:23:10 pmAlso, if you access nibble data from your app, you'll need to use the alternate nibble read/write functions.What functions?
Quote from: buttsfredkin on September 22, 2011, 09:13:23 pmQuote from: calc84maniac on September 22, 2011, 05:23:10 pmAlso, if you access nibble data from your app, you'll need to use the alternate nibble read/write functions.What functions?nib{nibble_address}r and value->nib{nibble_address}r
How did we get on the topic of #Realloc()? That has to do with changing where in memory the A-θ variables reference, not strings or MemKit. I meant you should use a different pointer argument for Print() that will result in the string being copied to RAM, since Str1 is a part of your application and cannot be written to. For example: Print(L₁).Regarding appvars, unless you want data to persist between runs (like settings or high scores), I would try to use scratch RAM to hold your data whenever possible. As far as I know, you don't need this string to persist between runs and it's pretty small, at most 9 bytes, so it's probably easiest to use scratch RAM to hold it.
No, but if you have an appvar or some free ram, you can write nibbles to there. Correct, calc84/runer112/anyone else?
Quote from: buttsfredkin on September 22, 2011, 10:33:33 pmNo, but if you have an appvar or some free ram, you can write nibbles to there. Correct, calc84/runer112/anyone else?Yes, but you'd use the normal nibble commands for that.