this would have to be done in ASM then, i guess? since Axe can't write to programs
My question is how are you going to run the program after you add in the spaces? And the only reason the AutoOptimization program is able to edit programs is because it never *increases* the file size, which is incredibly difficult.
But with that, i need at least half of my ram free, and so programs that take up more than half of RAM (excluding the organization program) won't work
So are you planning to use spaces or some other token for the indent? Colons i think would work the best because then the program would still execute, while any other would cause errors.
What would be cool is if it detected it was an Axe source program, it used spaces, but if it was a BASIC program, it would use colons.So are you planning to use spaces or some other token for the indent? Colons i think would work the best because then the program would still execute, while any other would cause errors.
Aren't spaces ignored by the parser?
So are you planning to use spaces or some other token for the indent? Colons i think would work the best because then the program would still execute, while any other would cause errors.
Also, there is an alternative method for allocating memory using numerous OS BCALLS that would move the program around and extend free memory so that the program could grow normally, but i would not be the one to ask on how to use that D:
Edit: It would also be great to know the asm code for ram availble.There's a link to Axe code to it in the routines thread.
spaces within the code will be removed before added in.
Spaces with a note (. statement) will not be removed.
Does that answer what you are asking?
if read_byte == quotation_token
repeat read_byte == quotation_token
read_byte = next_byte
end
end
While 1
If 1
.Note
End
End
Like it is, but is this:While 1
If 1
. Note
End
End
A possibility?While 1
If 1
..Note
End
End
i suppose, but why would you want that?
either way, That would be under Options: which i will add once i rip apart Builderboy's code for program menus.
my graphics card fan is about to shut off.
it's all programmer's choice, here. personally, i don't understand why you would even indent on calculator source code. i don't even comment on my source for calculators.Yeah it depends of people. Personally i don't bother. I just add more linebreaks between parts of code. I try to add some comments if I fear I will forget what something does, though. Otherwise I end up having to rewrite lots of things, like with Metroid II: Evolution 4 years ago. X.x
it's all programmer's choice, here. personally, i don't understand why you would even indent on calculator source code. i don't even comment on my source for calculators.Yeah it depends of people. Personally i don't bother. I just add more linebreaks between parts of code. I try to add some comments if I fear I will forget what something does, though. Otherwise I end up having to rewrite lots of things, like with Metroid II: Evolution 4 years ago. X.x
it's all programmer's choice, here. personally, i don't understand why you would even indent on calculator source code. i don't even comment on my source for calculators.Yeah it depends of people. Personally i don't bother. I just add more linebreaks between parts of code. I try to add some comments if I fear I will forget what something does, though. Otherwise I end up having to rewrite lots of things, like with Metroid II: Evolution 4 years ago. X.x
people not bothering is why i made it ;)
now instead of 5-45 min of organizing, it will take 30 sec.
(it will still be used by me ;))