ticalc.org
Basics Archives Community Services Programming
Hardware Help About Search Your Account
   Home :: Archives :: News :: First BASIC to assembly compiler released

First BASIC to assembly compiler released
Posted on 3 January 1999, 00:59 GMT

David Hart has released the TI-BASIC Compiler v0.2 Alpha for Windows 9x/NT. This program will compile tokenised TI-BASIC programs into assembly programs for the TI-86. Currently there is only limited command support and most graphing commands are not supported. Compiling a program will increase its size by 20-40%, which is quite large when you compare BASIC and assembly programs. David will continue development on this program if he gets enough support (which he probably will).

 


The comments below are written by ticalc.org visitors. Their views are not necessarily those of ticalc.org, and ticalc.org takes no responsibility for their content.


Re: First BASIC to assembly compiler released
Akdjr
(Web Page)

YES!!!!! finally, i've been waiting for something like this. of course, i want to learn asm (i know a little, though not enough to make a game), but this will make my life a whole lot easier. one question though, since it compiles basic to asm, could you edit the resulting asm and include sprites?

     3 January 1999, 07:33 GMT


Re: Re: First BASIC to assembly compiler released
David Hart

I'm afraid not. It compiles to machine code, which is very difficult to edit.

     3 January 1999, 12:55 GMT


Re: Re: Re: First BASIC to assembly compiler released
brandon sterner

you could use dasm, a disassembler but you still would need to know asm

     3 January 1999, 19:02 GMT

Re: First BASIC to assembly compiler released
Val
(Web Page)

This is cool because I new basic such a long time ago but was discouraged because it was too slow, I tried asm but its difficult, but ill get there, but now with these types of progs it will be more fun! and more people can make games and progs

     3 January 1999, 09:08 GMT

why don''t you make an on calc assembler???
Spooky
(Web Page)

that'd be cool: write the code on the calc and have a programm called tasm or so and it compiles it for you! ON CALC

     3 January 1999, 17:25 GMT

Re: why don''t you make an on calc assembler???
David Hart

I considered it when I first started writing this program, but decided it would be far too slow and unmanageable. It can take several minutes just to tokenise a TI-BASIC program on a calculator, let alone compile it as well! Also, I wanted to write an optimising compiler, which would slow down an on-calc compiler even more. It probably is possible, but I would rather use a much faster PC to handle the task of compiling.

     3 January 1999, 17:42 GMT


Re: why don''t you make an on calc assembler???
jimi

i made a program that will assemble on your calculator for you. it's not designed for major games and such but it will due basic stuff like make a last minute program for a test or something. the package includes an assembler, disassembler, finding offsets for text, finding values, looking up a value with given offsets, and more. if you want a copy of a memory backup with it installed, just email me and i'll be happy to send you a test version. this includes a z80 opcode reference text document that's needed. everything else is on the calculator.

jimi

     3 January 1999, 20:31 GMT

Re: First BASIC to assembly compiler released
doleboy

Why do I get this "Range check error" every time i try to compile a program? What is the problem?

doleboy

     3 January 1999, 18:26 GMT


Re: Re: First BASIC to assembly compiler released
David Hart

What program are you trying to compile? I haven't encountered this problem yet.

     3 January 1999, 20:35 GMT


Re: Re: Re: First BASIC to assembly compiler released
doleboy

Every program I try to compile, I get that error.
it's very annoying.
Help?

     4 January 1999, 05:43 GMT


Re: Re: Re: Re: First BASIC to assembly compiler released
dan the man

same here. i feel your pain

     10 January 1999, 20:09 GMT

Re: First BASIC to assembly compiler released
Bubba

i think this is a great project and can help a lot of ti-basic programmers get more speed from there programs. i just want everyone to understand that this assembler will not make your tibasic programs run as fast as there asm counterpart. to get maxium efficency from your program you still need to learn asm. there is no way around that

     3 January 1999, 18:42 GMT


Re: Re: First BASIC to assembly compiler released
David

That may be true for now, but it will not hold over the next few months. This program will be optimized and improved, if not by the author, than by some other aspiring programmer. This is a big change for the TI community.

     4 January 1999, 04:21 GMT


Re: Re: Re: First BASIC to assembly compiler released
Eugene

This program? It's not the assembler that's too big (it's not like it takes up 500MB of HD space); it's the programs that are too bloated.

     6 January 1999, 02:09 GMT


Re: Re: Re: Re: First BASIC to assembly compiler released
Eugene

Scratch that. I misread that comment.

     6 January 1999, 02:14 GMT

Re: First BASIC to assembly compiler released
Somebody

How about making it for 83?

     3 January 1999, 22:21 GMT

WOO HHOOOOO
Shane Abernathy
(Web Page)

Finally, what can I say, KICK ASS, and Yahoo!!!
I can finally make maskaeria into asm with hardly no difficulty at all. Keep it up. If you need anything at all.

     4 January 1999, 00:40 GMT

Re: First BASIC to assembly compiler released
Paul
(Web Page)

Good job, just a misc comment even though I know it's a beta. I compiled a program of mine that gives the factors of a number. It displayed the results properly however instead of starting backwards like:

10 * 10 = 100

it displayed:

1 * 100 = 100

Not that I'm complaining just reporting a little bug.

     4 January 1999, 01:31 GMT

Re: First BASIC to assembly compiler released
jeff

That is just so awesome, turning BASIC into ASM. I think a great feature to add would be having the source code for the ASM program be created too, so it would be possible to compare the BASIC and ASM code. I think that would help myself and many others who can't figure out ASM. Maybe it could result in new ASM programmers, which could also result in more games. Well, keep working on it, and you're gonna have a truly b*tchen' program!

     4 January 1999, 01:34 GMT

Re: First BASIC to assembly compiler released
!

I think that this is really neat. I only wish that I had a TI-86. Could anybody make one for any of the other calculators, like the 89?

     4 January 1999, 05:01 GMT

Re: First BASIC to assembly compiler released
Matt
(Web Page)

I was wondering, I am VERY familiar with basic, and use reals and strings to control all of my values. (phone numbers, names, game data, etc.) How does the ASM compiler get around this if you use these values, or want to use them in another program? (I've heard that the values that the ASM language uses are deleted upon exiting, and this could eaisly turn into someone's horror story!) Moreso, what about sub-programs? (BASIC G.U.I.'s for example?) I am eager to hear what you have to say, and even more, how this works.

     4 January 1999, 05:31 GMT

Re: Re: First BASIC to assembly compiler released
:-)

You can use romcalls in ASM to create TI-OS varaibles(like reals, strings, etc.), and then store data to those variables, in which case they won't be deleted when the prgm quits.

     4 January 1999, 06:10 GMT


Re: Re: First BASIC to assembly compiler released
David Hart

Compiled programs store variables in RAM page 1 of the calculator (there's about 15K free there to safely use). The variables are never actually created on the calculator, so they can't be accessed by another program (I'll probably provide a solution to this in a future version). Sub-programs compiled with the main program can access variables used in the main program, though. If the program you are compiling runs a sub-program, the compiler will search for that sub-program and will compile it along with the main program if it finds it.

     4 January 1999, 19:15 GMT

1  2  3  4  5  

You can change the number of comments per page in Account Preferences.

  Copyright © 1996-2012, the ticalc.org project. All rights reserved. | Contact Us | Disclaimer