Where do I find a program that can transfer basic to asm hex?
Check ticalc.org for a Basic to Z80 ASM compiler (although it only creates Apps if I remember right)
Kllrnohj wrote:
Check ticalc.org for a Basic to Z80 ASM compiler (although it only creates Apps if I remember right)
The program you're thinking of is called BASICBuilder; all it does is compress your BASIC programs into an App. There's no good BASIC-->ASM converter, if that's what you mean, blm22. The link to BASICBuilder:

http://www.ticalc.org/archives/files/fileinfo/321/32127.html
I believe this program is supposed to compile BASIC into assembly, but I think I tried to use it awile back and couldn't get it to work. Sad

Oh God how I wish there was a reliable and easy-to-use BASIC to asm compiler!
MDR Falcon wrote:
I believe this program is supposed to compile BASIC into assembly, but I think I tried to use it awile back and couldn't get it to work. Sad

Oh God how I wish there was a reliable and easy-to-use BASIC to asm compiler!
Ain't gonna happen in the near future - the two languages are just way too different.
But... when you run a BASIC program, the code is translated to machine code and then executed, right? So wouldn't it be theoretically possible to write a program that compiled BASIC programs to machine code/assembly?
MDR Falcon wrote:
But... when you run a BASIC program, the code is translated to machine code and then executed, right? So wouldn't it be theoretically possible to write a program that compiled BASIC programs to machine code/assembly?
Not at *all*. Most of BASIC is interpretation to TI's ROMcalls to do math. In ASM, you'd just be directly calling those ROMcalls, which wouldn't save much speed at all.
MDR Falcon wrote:
But... when you run a BASIC program, the code is translated to machine code and then executed, right? So wouldn't it be theoretically possible to write a program that compiled BASIC programs to machine code/assembly?


You must remember that Basic is an interperated language, not a compiled language, much like JavaScript never reaches machine-code level.

So think of it more like this... (assume tok points to the current token)

Code:
if (tok = '+')
Ans = add(tok - 1, tok + 1)
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement