BASIC to Asm on-calc translator

Got a brilliant program idea? Let us know!

Moderator: MaxCoderz Staff

Post Reply
User avatar
bongo
New Member
Posts: 11
Joined: Sat 09 Jan, 2010 12:03 am

BASIC to Asm on-calc translator

Post by bongo »

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?
User avatar
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

Post by calc84maniac »

~calc84maniac has spoken.

Projects:
F-Zero 83+
Project M (Super Mario for 83+)
User avatar
bongo
New Member
Posts: 11
Joined: Sat 09 Jan, 2010 12:03 am

Re: BASIC to Asm on-calc translator

Post by bongo »

I think you missed the point... :?
User avatar
benryves
Maxcoderz Staff
Posts: 3087
Joined: Thu 16 Dec, 2004 10:06 pm
Location: Croydon, England
Contact:

Re: BASIC to Asm on-calc translator

Post by benryves »

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". :-)
Post Reply