BASIC to Asm on-calc translator
Moderator: MaxCoderz Staff
BASIC to Asm on-calc translator
So when executing a BASIC program, the calculator has to translate into Asm, and the Calculator's obviously equipped to create copies of programs as is evident in RCL, groups and other such things. Now, I don't know if something like this already exists, but I think it would be cool if there were a program which translated a BASIC programs into Asm and saved a copy of it, so you could run it as an Asm program. Anyone agree?
- calc84maniac
- Regular Member
- Posts: 112
- Joined: Wed 18 Oct, 2006 7:34 pm
- Location: The ex-planet Pluto
- Contact:
Re: BASIC to Asm on-calc translator
~calc84maniac has spoken.
Projects:
F-Zero 83+
Project M (Super Mario for 83+)
Projects:
F-Zero 83+
Project M (Super Mario for 83+)
Re: BASIC to Asm on-calc translator
I think you missed the point...
- benryves
- Maxcoderz Staff
- Posts: 3089
- Joined: Thu 16 Dec, 2004 10:06 pm
- Location: Croydon, England
- Contact:
Re: BASIC to Asm on-calc translator
The calculator doesn't convert anything into assembly; it reads commands from the program one by one and executes them in sequence. "Compiling" this into an assembly program would result in something that was far larger than the original program with a negligible speed increase.
I suppose you could write an assembly program that included a copy of the original tokenised program, and extracted a copy of it and asked the TI-OS to execute that copy. BasicBuilder does something like this.
If you mean writing an on-calculator optimising compiler - "good luck".
I suppose you could write an assembly program that included a copy of the original tokenised program, and extracted a copy of it and asked the TI-OS to execute that copy. BasicBuilder does something like this.
If you mean writing an on-calculator optimising compiler - "good luck".