Omnimaga
Calculator Community => TI Calculators => Axe => Topic started by: epic7 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.
-
if you are compiling it for no shell, did you do this:?
asm(prgmPROGRAM
what exactly was the code for the "hello world" program?
-
I compiled it from the axe application.
I read the users guide wrong, actually. The hello world thing makes sense now.
-
so everything's good now?
-
No, the program still doesnt work
:.PROGRAM
:1->S
:Disp S>Dec
I was asking 2 different questions
-
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.
-
yeah you probably just need a:
:Repeat getKey
:End
at the end of the program
-
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.
-
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.
-
shells are things like MirageOS and DCS, I think.
-
Well.... I dont know what that is either.
-
oh, let me see if I can get a liink...
EDIT: got the link (http://www.ticalc.org/archives/files/fileinfo/139/13949.html)
you can run assembly and basic progs from it.
-
The code should be valid, unless you messed up with the -> (STO) or >DEC.
-
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.
-
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( ?
-
Now it works!
-
hooray!!!
what did you do different?
-
I did Asm(prgmPROGRAM instead of just prgmPROGRAM
Thanks for the help!
-
Anytime ;D
-
I noticed if I understood what you said in the second post, that it would have solved it then :P
-
All assembly programs must be run with Asm( when you run them from the home screen. (Axe compiles to assembly and has nothing to do with TI-BASIC.)
-
On a side note epic7 welcome to the forums :D
-
i usually prefer getkeyr to doing either a Pause or a Repeat getkey:End loop. It's smaller. and looks better.
Edit: im not sure about speed in comparison, but i just use it for debugging anyways, so that doesnt matter for me.
-
All assembly programs must be run with Asm( when you run them from the home screen.
Unless you're using something along the lines of zStart, NoShell, CalcUtil, DCS, etc :D
-
I use zStart and DCS7.
-
Yeah I like the latter because of the no requirement for Asm and running from archive/homescreen. I didn't try zStart yet, though.
-
zStart is pretty epic ;)
It was kind of funny when I used dcs, I used like two or three functions and after a few crashes I got tired of it :P
-
with DCS, there are some VERY annoying bugs. for example, when i was making my maze engine in xLIB, i was making levels (external programs). the engine is prgmMAZE, and the mazes are like prgmMAZE#. When i would edit prgmMAZE0 or prgmMAZE1, it would delete prgmMAZE, even if it was in archive. so i think im gonna switch back to MirageOS.
-
Also, what's a subroutine?
-
I think subroutine is a equivalent of subprograms in TI-BASIC.
-
A subroutine is....
Several lines of code that can be called from any part of a program. Subroutines are helpful in reducing coding size and program size by removing repeated code.
-
Cool. That sounds useful
-
no u dont need to run it in asm(), no shell runs fine + u dont have to worry about all the other crap of goin thru mirage, so on and so on....but since what no shell does is, allow u to use programs from the archives, u just need to compile it and then archive it!! i had the same problem at the beggining, no shell does work fine, and ur prgm is fine...no adays i just use ion....that works best for everything
-
saintrunner, welcome to Omnimaga!
What you are stating in your post, as I understand it, is somewhat erroneous. However, I cannot be at all certain on account of the extreme difficulty I encountered in attempting to decipher what you wrote. Please, please edit your post for correct capitalization, punctuation, spelling, and all the other standards for written English. If not that, then at least make a decent attempt at it.
I normally do not complain about poor English from others, but that's because I can easily understand what they are saying. If nothing else, make your post easy to understand.
Of course, I do not intend to offend. You are welcome here, and I am obliged to ask you to consider introducing yourself (http://www.omnimaga.org/index.php?action=post;board=10.0) once you can write more coherently. :)
-
many people here have English as a secondary language, and thus would find that difficult to read/ google translate.
(nicer way to put it :P )
-
saintrunner, welcome to Omnimaga!
What you are stating in your post, as I understand it, is somewhat erroneous. However, I cannot be at all certain on account of the extreme difficulty I encountered in attempting to decipher what you wrote. Please, please edit your post for correct capitalization, punctuation, spelling, and all the other standards for written English. If not that, then at least make a decent attempt at it.
I normally do not complain about poor English from others, but that's because I can easily understand what they are saying. If nothing else, make your post easy to understand.
Of course, I do not intend to offend. You are welcome here, and I am obliged to ask you to consider introducing yourself (http://www.omnimaga.org/index.php?action=post;board=10.0) once you can write more coherently. :)
Yeah I agree. Omni is more lax on grammar and spelling (on certain other sites in the past, they yelled at people for 3 mistakes even if it was their first post ever) but it's best to do an effort at least, so people can understand you. Also some people use Google Translate to read English messages, which doesn't work if a message contains many spelling mistakes or MSN-like talk. It's best to spend an extra half a minute per post to make sure they're easy to read/translate, else people may not spend the extra 5-10 minutes required to dechiper the post and may simply not reply to it.
That said, welcome to the forums and I hope you enjoy your stay. :)
-
saintrunner, welcome to Omnimaga!
What you are stating in your post, as I understand it, is somewhat erroneous. However, I cannot be at all certain on account of the extreme difficulty I encountered in attempting to decipher what you wrote. Please, please edit your post for correct capitalization, punctuation, spelling, and all the other standards for written English. If not that, then at least make a decent attempt at it.
I normally do not complain about poor English from others, but that's because I can easily understand what they are saying. If nothing else, make your post easy to understand.
Of course, I do not intend to offend. You are welcome here, and I am obliged to ask you to consider introducing yourself (http://www.omnimaga.org/index.php?action=post;board=10.0) once you can write more coherently. :)
I apologize, I forgot about other languages. I was simply stating that it is more beneficial to use ion for all your compiling needs. I tends to work easier. Also if you chose to use no shell, you must remember to archive your program before running it.
-
Well the thing is that the majority of people on calc forums uses Doors CS or Noshell, which can run archived programs directly from the PRGM menu, even ASM ones, and you don't even need the Asm() command. This is why most people now compile for no shell. Ion is also a good option so your program will run in all 3 major shells (Ion, MirageOS and Doors CS7), but the majority of people still mainly use Doors CS nowadays it seems, since it had more features.
Ion is kinda obsolete nowadays because it eats like 1600 bytes of RAM after installing (even if you delete the install program), so a lot of large games cannot run with it. Gemini 3D is an example, and I could barely even run Dying Eyes. Also it tends to crash more often on any OS higher than 1.12.
-
saintrunner, welcome to Omnimaga!
What you are stating in your post, as I understand it, is somewhat erroneous. However, I cannot be at all certain on account of the extreme difficulty I encountered in attempting to decipher what you wrote. Please, please edit your post for correct capitalization, punctuation, spelling, and all the other standards for written English. If not that, then at least make a decent attempt at it.
I normally do not complain about poor English from others, but that's because I can easily understand what they are saying. If nothing else, make your post easy to understand.
Of course, I do not intend to offend. You are welcome here, and I am obliged to ask you to consider introducing yourself (http://www.omnimaga.org/index.php?action=post;board=10.0) once you can write more coherently. :)
I apologize, I forgot about other languages. I was simply stating that it is more beneficial to use ion for all your compiling needs. I tends to work easier. Also if you chose to use no shell, you must remember to archive your program before running it.
Just use the backup feature :)
-
Yeah, I use Doors
(100th post!)
-
No matter, just keep making good posts. :)
I would agree that, in general, compiling for ION is the best choice because all other commonly used shells (MirageOS, DoorsCS, etc.) are compatible with its format.
Also, I think you meant "unarchive"; the OS will only run programs if they are in RAM. (Archiving puts programs into Archive and out of RAM.)
Edit: Do you mean compiled code or source code? If the latter, Keoni's point applies.
Edit 2: Didn't see your post there, DJ!
-
Yeah, I use Doors
(100th post!)
Like I care
-
Yeah, I use Doors
(100th post!)
Like I care
What was that post for? It's rather rude and provocative. Are you trying to start a fight or something? I rated it down btw
-
Yeah, I use Doors
(100th post!)
Like I care
What was that post for? It's rather rude and provocative. Are you trying to start a fight or something? I rated it down btw
I was about to say [/flamewar], but seen the situation this is not a good idea. I am really sorry. I was not aware of the fact that epic7 was responding on a previous post of yours. You see it bothers me that people go offtopic after the problems are solved. Given the fact that I already broke a rule even before it existed i will be extra carefull not to provoke anyone anymore.
-
Well the thing is that there are much worse things that some people did on the Internet than just going off-topic for a short while, such as someone just mindlessly bashing someone else's project, although of course if someone always went off-topic it would be bad. Anyway apology accepted. Just don't do it again.