Omnimaga

Calculator Community => TI Calculators => ASM => Topic started by: Munchor on October 31, 2010, 06:56:09 pm

Title: Tokens Test
Post by: Munchor on October 31, 2010, 06:56:09 pm
I downloaded tokens, it looks great.

Now, can you help me with a sample small program to write in it, to test it?

I'm not into Asm programming but I would like to test it, by writing a simple program, maybe a Hello World, possibly more complex.

So...

I start with a header:

Code: [Select]
.FSTPROG
Disp "Hello World"

Then, it converted to this:

Code: [Select]
3A46535450524F47
DE2A48BBB4BBBCBBBCBBBF2957BBBFBBC2BBBCBBB32A

Now, I do compile and save HWLD.8xp

When I put it in my calculator and use Doors to run it, it opens the source code instead.

Any ideas, a simple way to use Token and make a simple program Hello World?

Thanks

Title: Re: Tokens Test
Post by: Deep Toaster on October 31, 2010, 06:59:58 pm
That's Axe, not ASM, so it's basically like a TI-BASIC program. Tokens can't be used to code ASM, anyway. For that, you'd have to use an assembler like Tasm or SpAsm (or Mimas on-calc).
Title: Re: Tokens Test
Post by: Munchor on October 31, 2010, 07:01:24 pm
That's Axe, not ASM, so it's basically like a TI-BASIC program. Tokens can't be used to code ASM, anyway. For that, you'd have to use an assembler like Tasm or SpAsm (or Mimas on-calc).

Yeah, Axe, what I meant. So, any ideas for Axe?

I could never do a "Disp "Hello World"" in Asm hahah Axe indeed
Title: Re: Tokens Test
Post by: Deep Toaster on October 31, 2010, 07:02:39 pm
Well, Tokens doesn't compile Axe source code. It just compiles ASCII text to a TI-BASIC program, which in this case would be the Axe source code. You still need Axe on your calc to compile that to an actual executable program.
Title: Re: Tokens Test
Post by: Munchor on October 31, 2010, 07:09:19 pm
Ok then, Axe in my calculator is not working, so, mehh whateverX
Title: Re: Tokens Test
Post by: Deep Toaster on October 31, 2010, 07:11:19 pm
Ok then, Axe in my calculator is not working, so, mehh whateverX

Really? How? If it gives you an error of any sort, you should report that to Quigibo.
Title: Re: Tokens Test
Post by: Munchor on October 31, 2010, 07:11:49 pm
Ok then, Axe in my calculator is not working, so, mehh whateverX

Really? How? If it gives you an error of any sort, you should report that to Quigibo.

Reported already, but I don't know if he's going to do anything about it, since I'm the only one :'( :'(
Title: Re: Tokens Test
Post by: Deep Toaster on October 31, 2010, 07:13:27 pm
Oh, the problem with Ping? Maybe it's only with that program. You should try it with this.
Title: Re: Tokens Test
Post by: Munchor on October 31, 2010, 07:14:15 pm
Oh, the problem with Ping? Maybe it's only with that program. You should try it with this.

It's not ping, it's axe itself...
Title: Re: Tokens Test
Post by: Deep Toaster on October 31, 2010, 07:17:42 pm
Does it not compile or something?
Title: Re: Tokens Test
Post by: Munchor on October 31, 2010, 07:19:43 pm
Does it not compile or something?

When you open Axe you see a menu, with Compile List, Options, etc.

When I open axe, I see a Menu( function, title is "Compile List" and then I can see all programs I have and I can compile them if I press ENTER. Whichever I try (even if they have Axe correct code) it gives me UNKNOWN ERROR.

Quigibo says he has no idea, but he must have made this Menu function and stuff in order for it to appear
Title: Re: Tokens Test
Post by: Xeda112358 on October 31, 2010, 08:07:49 pm
Wait, is there a program that will compile hex on the computer into .8xp?
Title: Re: Tokens Test
Post by: Deep Toaster on October 31, 2010, 08:09:49 pm
DevPac8x (http://www.ticalc.org/archives/files/fileinfo/129/12922.html)?
Title: Re: Tokens Test
Post by: Xeda112358 on October 31, 2010, 08:11:26 pm
How does it work? Do I put the hex into a .txt file and drag onto it?
Title: Re: Tokens Test
Post by: Deep Toaster on October 31, 2010, 08:12:23 pm
It converts a .bin file into .8xp. Not sure what the .bin file contains, but it should be pure hex...
Title: Re: Tokens Test
Post by: Xeda112358 on October 31, 2010, 08:15:15 pm
DevPak8x isn't working on my 64-bit computer.
Title: Re: Tokens Test
Post by: DJ Omnimaga on November 01, 2010, 03:24:42 am
Is there a way to get it to compile stuff through DOSBox or something or would that not work?
Title: Re: Tokens Test
Post by: souvik1997 on November 01, 2010, 07:41:02 am
You could use BinPac8x, http://www.ticalc.org/archives/files/fileinfo/429/42915.html (http://www.ticalc.org/archives/files/fileinfo/429/42915.html). You need Python 2.x .
Title: Re: Tokens Test
Post by: DJ Omnimaga on November 01, 2010, 11:40:21 am
Oh right I always forget about that one. I didn't pay attention much because it's ASM-related so I didn't knew it was an alternative to DevPac8x. I guess great job to Kerm again ;D
Title: Re: Tokens Test
Post by: Xeda112358 on November 01, 2010, 11:20:13 pm
Sorry, but I am inexperienced with computers. I know that Python is a language, but I no nothing about how to get it, install it, use it, or anything like that. But thanks!
Title: Re: Tokens Test
Post by: AngelFish on November 01, 2010, 11:21:45 pm
You can download Python here (http://www.python.org/download/). The best way to think of Python is as the serious version of BASIC.
Title: Re: Tokens Test
Post by: Xeda112358 on November 01, 2010, 11:24:58 pm
So what do I do with it once I have it downloaded on my computer?
Title: Re: Tokens Test
Post by: AngelFish on November 01, 2010, 11:37:57 pm
Installation Instructions (http://diveintopython.org/installing_python/windows.html) (use the instructions for the Python.org download)

When it's finished installing, run the GUI. I'd recommend looking through the tutorials as well.
Title: Re: Tokens Test
Post by: DJ Omnimaga on November 01, 2010, 11:53:38 pm
Aren't there also 2 versions of Python? If I remember, programs are dependent on one version so you have to be careful which one you download. I could be wrong, though. It has been a while since I last checked Python stuff.
Title: Re: Tokens Test
Post by: Xeda112358 on November 01, 2010, 11:56:08 pm
I don't know, but I am liking the sound of this thing...
Title: Re: Tokens Test
Post by: AngelFish on November 02, 2010, 12:05:29 am
Aren't there also 2 versions of Python? If I remember, programs are dependent on one version so you have to be careful which one you download. I could be wrong, though. It has been a while since I last checked Python stuff.

Yeah, version 2 and version 3. There's also the dozen Python spinoffs, like IronPython, Jython, Sython and so on.

Python's actually a great language if you're learning how to program or you need to deal with high level stuff. Much of Google was originally done in it. Its main drawback is that it's slow. In other simple to use, high level and slow. Just like BASIC.

I don't use Python anymore, though. I switched to Calc programming and I haven't gone back.
Title: Re: Tokens Test
Post by: DJ Omnimaga on November 02, 2010, 03:06:50 am
I assume another drawback was the dependencies, right? (Having python installed to run actual python applications)
Title: Re: Tokens Test
Post by: AngelFish on November 02, 2010, 04:14:53 am
I assume another drawback was the dependencies, right? (Having python installed to run actual python applications)

I didn't notice it much. Enough applications use Python that it's not a problem most of the time.