You can Buff(#)→GDB1, where a space # bytes large is created and GDB1 points to it.How large can the buffer possibly be? Can I expand the buffer while running the program?
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).Isn't that only for code and not data ?
Also you can't use it fully in apps because it's SMC.What is SMC ?
true. Iirc there's still some problems with code being stored at the end, tho.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).Isn't that only for code and not data ?
Self-modifying-code. The apps are in Archive and because of the nature of the flash chip you have to wipe a whole page to write to it properly.Also you can't use it fully in apps because it's SMC.What is SMC ?
You mean, something like editingI guess that 99 patterns will be plenty.
"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:And it should work.Spoiler For Spoiler:
Keep in mind how many bytes in you are, tho...it might help to do it in a test program first :P
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]
This modifies the 00 to number according to D.
or here's the one that Runer gave me long time ago.I think this one is more optimized actually:Code: [Select]:"appvS00"→Str0
This modifies the 00 to number according to D.
:D^10*256+(D/10)+[sub]E[/sub]3030→{Str0+2}[sup]r[/sup]
"appvDSLvl00"→Str0L
A/10+48→{Str0L+6}
A^10+48→{Str0L+7}
Well I'm not sure, it's from runer after all :POh, that's what it was doing XD
looking at it...
D^10*256+(D/10)+E3030→{Str0+2}r
Wow 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.
O.O
I don't know which is smaller compiled, but that's pretty epic anyway.