Author Topic: Nothing is working  (Read 15590 times)

0 Members and 2 Guests are viewing this topic.

Offline epic7

  • Chopin!
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2200
  • Rating: +135/-8
  • I like robots
    • View Profile
Nothing is working
« on: October 21, 2011, 08:43:27 pm »
I've started Axe today and started reading the User's Guide.

I have experience in ti-basic and have enough knowledge to make simple games on it.

Well, I made a basic program and it didn't work. Is there something wrong?

:.PROGRAM
:1->S
:Disp S>Dec

I went to compile and selected no shell and ran the program. All I get is a syntax error.

« Last Edit: October 21, 2011, 08:54:31 pm by epic7 »

Offline parserp

  • Hero Extraordinaire
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1455
  • Rating: +88/-7
  • The King Has Returned
    • View Profile
Re: Nothing is working
« Reply #1 on: October 21, 2011, 08:45:23 pm »
if you are compiling it for no shell, did you do this:?
asm(prgmPROGRAM

what exactly was the code for the "hello world" program?

Offline epic7

  • Chopin!
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2200
  • Rating: +135/-8
  • I like robots
    • View Profile
Re: Nothing is working
« Reply #2 on: October 21, 2011, 08:48:44 pm »
I compiled it from the axe application.

I read the users guide wrong, actually. The hello world thing makes sense now.

Offline parserp

  • Hero Extraordinaire
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1455
  • Rating: +88/-7
  • The King Has Returned
    • View Profile
Re: Nothing is working
« Reply #3 on: October 21, 2011, 08:49:18 pm »
so everything's good now?

Offline epic7

  • Chopin!
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2200
  • Rating: +135/-8
  • I like robots
    • View Profile
Re: Nothing is working
« Reply #4 on: October 21, 2011, 08:51:28 pm »
No, the program still doesnt work

:.PROGRAM
:1->S
:Disp S>Dec

I was asking 2 different questions
« Last Edit: October 21, 2011, 08:51:51 pm by epic7 »

Offline Darl181

  • «Yo buddy, you still alive?»
  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3408
  • Rating: +305/-13
  • VGhlIEdhbWU=
    • View Profile
    • darl181.webuda.com
Re: Nothing is working
« Reply #5 on: October 21, 2011, 08:52:17 pm »
It may or may not be relevant but compiling for Ion might fix...?  Also it would work in shells.
Which program are you running, the source or the compiled?  How are you running it?

Also, you might want to put in a Pause 1900 after the Disp line, chances are it would quit before you could tell it put something on the screen.
« Last Edit: October 21, 2011, 08:53:01 pm by Darl181 »
Vy'o'us pleorsdti thl'e gjaemue

Offline parserp

  • Hero Extraordinaire
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1455
  • Rating: +88/-7
  • The King Has Returned
    • View Profile
Re: Nothing is working
« Reply #6 on: October 21, 2011, 08:53:29 pm »
yeah you probably just need a:
Code: [Select]
:Repeat getKey
:End
at the end of the program

Offline Darl181

  • «Yo buddy, you still alive?»
  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3408
  • Rating: +305/-13
  • VGhlIEdhbWU=
    • View Profile
    • darl181.webuda.com
Re: Nothing is working
« Reply #7 on: October 21, 2011, 08:53:56 pm »
But if he's getting a syntax error there's something else going on. ;)
Say the source name (the program you select in Axe) is TESTSRC and the compiled program is PROGRAM.  Which one are you running?
Running TESTSRC would understandably throw a syntax error but PROGRAM is the one that actually does the stuff.
« Last Edit: October 21, 2011, 08:55:58 pm by Darl181 »
Vy'o'us pleorsdti thl'e gjaemue

Offline epic7

  • Chopin!
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2200
  • Rating: +135/-8
  • I like robots
    • View Profile
Re: Nothing is working
« Reply #8 on: October 21, 2011, 08:54:21 pm »
I understand the string thing now; I figured it out.

I ran the compiled code.

Im not really sure what a shell is or ion.

Offline parserp

  • Hero Extraordinaire
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1455
  • Rating: +88/-7
  • The King Has Returned
    • View Profile
Re: Nothing is working
« Reply #9 on: October 21, 2011, 08:55:51 pm »
shells are things like MirageOS and DCS, I think.
« Last Edit: October 21, 2011, 08:56:12 pm by parser padwan »

Offline epic7

  • Chopin!
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2200
  • Rating: +135/-8
  • I like robots
    • View Profile
Re: Nothing is working
« Reply #10 on: October 21, 2011, 08:56:44 pm »
Well.... I dont know what that is either.

Offline parserp

  • Hero Extraordinaire
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1455
  • Rating: +88/-7
  • The King Has Returned
    • View Profile
Re: Nothing is working
« Reply #11 on: October 21, 2011, 08:57:10 pm »
oh, let me see if I can get a liink...
EDIT: got the link
you can run assembly and basic progs from it.
« Last Edit: October 21, 2011, 08:59:04 pm by parser padwan »

Offline Juju

  • Incredibly sexy mare
  • Coder Of Tomorrow
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 5730
  • Rating: +500/-19
  • Weird programmer
    • View Profile
    • juju2143's shed
Re: Nothing is working
« Reply #12 on: October 21, 2011, 08:57:17 pm »
The code should be valid, unless you messed up with the -> (STO) or >DEC.

Remember the day the walrus started to fly...

I finally cleared my sig after 4 years you're happy now?
THEGAME
This signature is ridiculously large you've been warned.

The cute mare that used to be in my avatar is Yuki Kagayaki, you can follow her on Facebook and Tumblr.

Offline epic7

  • Chopin!
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2200
  • Rating: +135/-8
  • I like robots
    • View Profile
Re: Nothing is working
« Reply #13 on: October 21, 2011, 09:01:28 pm »
Ok. Attached the exact screenshot of the code. Then I went to Axe, to compile with no shell selected, then pushed enter, then, opened prgmPROGRAM.

Offline parserp

  • Hero Extraordinaire
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1455
  • Rating: +88/-7
  • The King Has Returned
    • View Profile
Re: Nothing is working
« Reply #14 on: October 21, 2011, 09:02:22 pm »
Ok. Attached the exact screenshot of the code. Then I went to Axe, to compile with no shell selected, then pushed enter, then, opened prgmPROGRAM.
did you run it with the command asm( ?