0 Members and 2 Guests are viewing this topic.
You can Buff(#)→GDB1, where a space # bytes large is created and GDB1 points to it.
Well, the buffer is simply blank space within the program, so normally you're limited to ~8811 bytes - final program size (unless you use crabcake/fullrene).
Also you can't use it fully in apps because it's SMC.
Quote from: Darl181 on December 14, 2011, 10:55:22 amWell, the buffer is simply blank space within the program, so normally you're limited to ~8811 bytes - final program size (unless you use crabcake/fullrene).Isn't that only for code and not data ?
Quote from: Darl181 on December 14, 2011, 10:55:22 amAlso you can't use it fully in apps because it's SMC.What is SMC ?
You mean, something like editing"appvLvl01"so it says"appvLvl02"..?You just edit the string like it's a normal GDB, Pic, etc.The string is just one token after the other, spelling out whatever it's supposed to.So, one could just do something like this:Spoiler For Spoiler: "appvDSLvl01"→Str0L.A is number to store to string, from 00 to 99A/10+48→{Str0L+6}.first digitA^10+48→{Str0L+7}.second digitAnd it should work.Keep in mind how many bytes in you are, tho...it might help to do it in a test program first btw it's +48 because 0 is the 48th token, there's technical stuff but it works.
:"appvS00"→Str0:D^10*256+(D/10)+[sub]E[/sub]3030→{Str0+2}[sup]r[/sup]
or here's the one that Runer gave me long time ago.Code: [Select]:"appvS00"→Str0:D^10*256+(D/10)+[sub]E[/sub]3030→{Str0+2}[sup]r[/sup]This modifies the 00 to number according to D.
"appvDSLvl00"→Str0LA/10+48→{Str0L+6}A^10+48→{Str0L+7}
Well I'm not sure, it's from runer after all looking at it...D^10*256+(D/10)+E3030→{Str0+2}rWow I wouldn't have thought of this...not off the ball at least. What this does is it makes a two-byte number, fixes both tokens at once (E30 is 48) then sticks it in the string.I don't know which is smaller compiled, but that's pretty epic anyway.