Author Topic: Tokens Test  (Read 11050 times)

0 Members and 1 Guest are viewing this topic.

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Tokens Test
« 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


Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Tokens Test
« Reply #1 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).
« Last Edit: October 31, 2010, 07:00:12 pm by Deep Thought »




Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Tokens Test
« Reply #2 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

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Tokens Test
« Reply #3 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.
« Last Edit: October 31, 2010, 07:02:50 pm by Deep Thought »




Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Tokens Test
« Reply #4 on: October 31, 2010, 07:09:19 pm »
Ok then, Axe in my calculator is not working, so, mehh whateverX

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Tokens Test
« Reply #5 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.




Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Tokens Test
« Reply #6 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 :'( :'(

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Tokens Test
« Reply #7 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.




Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Tokens Test
« Reply #8 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...

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Tokens Test
« Reply #9 on: October 31, 2010, 07:17:42 pm »
Does it not compile or something?




Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Tokens Test
« Reply #10 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

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: Tokens Test
« Reply #11 on: October 31, 2010, 08:07:49 pm »
Wait, is there a program that will compile hex on the computer into .8xp?

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Tokens Test
« Reply #12 on: October 31, 2010, 08:09:49 pm »
« Last Edit: October 31, 2010, 08:12:51 pm by Deep Thought »




Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: Tokens Test
« Reply #13 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?

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Tokens Test
« Reply #14 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...