Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - E37

Pages: 1 ... 19 20 [21] 22 23 24
301
Axe / Re: Axe tutorial
« on: January 16, 2016, 08:31:47 pm »
Really? I have never heard of it or come across it in all my searches for help.
I guess it is easier to start a new thread than try to revive an old one.
(just how old is it?)
My ultimate goal is to "compile" all of the tutorial and the command overviews into one document.

302
Axe / Re: Axe tutorial
« on: January 16, 2016, 08:25:33 pm »
Here are the basics:
Numbers in Axe aren’t the nice as-big-as-you-want-with-decimals, rather they are an integer with a range of 0-255 for an 8 bit number or 0-35565 for a 16 bit.
If a number is greater than its max it will loop back to 0.
You can simulate negative numbers though. 255 can act as -1. For example if you add 1 and 255 it will loop back to 0 just like 1 + -1 = 0. This trick works for all numbers, -2 = 254…
In Axe (and a lot of other languages) variables don’t hold numbers, rather they hold a pointer.
A pointer is like a direction to a location. The variable bossHp would contain some number (you don’t need to know what it is) that points the place where the computer stores the number for the boss’s health.
However rather than think about what they are the letter variables (and a few others) act just the way you think they should. If you ask it to display the value of A it will tell you it’s value NOT its pointer.
The most important thing in Axe is lists or as I will call them, arrays. Arrays are just lists of 8 bit numbers (range 0-255). L1 is a pointer to an area of FREE RAM. Free ram is basically areas of memory that the calc uses for various reasons that the ordinary user can’t use. However in programs you can use them. Some areas contain information and using them could produce weird results, I will be using L1 which is actually named saveSScreen which contains no important information.
The first line of code is ALWAYS a period then the name of the program once it is compiled.
Here is how you use them (example code):
:.EXAMPLE
:5->{L1}
:Disp {L1} >Dec
:2 -> {L1+1}
:Disp {L1] >Dec
Once this is compiled and run it will display:
5
2
Okay… so what did I just do? You probably got the 5 and the 2 are the same ones displayed, but what are the {} and the +1 and L1?
L1 is the pointer to the area of memory I want to use, it tells the program where to store the data.
The {} tell the program that I want the value stored there, NOT the pointer.
Finally, the +1 means I want the 2nd item on the list, that way I am not overwriting the first value.
Now, if you didn’t get the correct result here are some reasons what could be wrong…
>Dec is one token it is found under the math menu.
Did you compile the program?
Did you run prgmEXAMPLE ?
Is there a period in front of EXAMPLE (in the program)?
You need to use the Asm( prgmCompliedProgramName) to run the compiled program.

Some things to remember…
The source code (the part you edit) and the executable (the part you run) are separate.
There is a limit on the size of all areas of free ram (nothing has unlimited memory) for L1 / saveSScreen is 712. If you try to modify {L1 + 1000} bad things will happen.
What are those bad things? Well, it will probably corrupt you RAM. What is that? You can tell if your RAM is corrupted if you go to the memory menu (I won’t spell out how to get there) and go to the 2nd option: “Mem Mgmt/Del” and scroll down. There will be a nice list of all your programs apps and appvars but if something is wrong you will notice some impossibly large entries. For example it might say that Y1 is 61592 bytes large (the total amount of ram is only about 24000) so, it can’t logically exist. The only way to fix it is, well… a RAM wipe. You need to archive everything important and reset you RAM. If you look back the weird files should be gone.
What to do if your calculator freezes: There isn’t really much you can do, your only option is to open the battery case and remove one of the batteries and put it back in. This will cause the calc to reset RAM. Note: you don’t get to archive your files so if they are in RAM they will be lost!
I recommend some kind of shell like Doors CS 7 as it lets you edit a program in archive and run programs without using the Asm( command as well as a LOT of other functions.
If your program doesn’t work as expected it probably isn’t Axe’s fault. I know I sometimes blame Axe in frustration. Look closer. I have never found a problem that was Axe’s fault. (Thanks Runner!)
Remember, all it takes is a bit of practice.
Check back later for some instructions on how to use some of the other commands.
Please post if you have any questions (or comments).
Don’t let the whole list of things that could go wrong discourage you, those are all of the major problems, and I haven’t really covered the basics yet of what Axe can do!

303
OmnomIRC Development / Re: Stretching for OmnomIRC 3
« on: January 13, 2016, 06:13:48 pm »
Oh! So that is what it is called!

304
TI Z80 / Re: zStart - an app that runs on ram clears
« on: January 13, 2016, 06:13:12 pm »
Has anyone else noticed that zStart's small font editor sometimes saves part of the program as gibberish overwriting part of the program?
(That was my main reason for starting my own editor)
I am using OS 2.43 on my ti-84

305
OmnomIRC Development / Re: Stretching for OmnomIRC 3
« on: January 13, 2016, 06:09:55 pm »
I kinda feel like a noob for asking this, but what exactly is OmnomIRC? Is it a phone app?

306
Axe / Re: Axe tutorial
« on: January 13, 2016, 06:02:38 pm »
Hopefully this is a group effort and not just me.
I will try to add one each day, is anyone willing to do the basics?

307
Axe / Re: Axe tutorial
« on: January 13, 2016, 05:01:58 pm »
I was thinking to have an intro article explaining pointers and various other things, since once you can grasp the basics all you need is a good explanation of the commands and experience to make cool games and other programs!

308
Axe / Axe tutorial
« on: January 13, 2016, 04:56:27 pm »
When I was learning Axe I couldn't find a good tutorial. All I had to go off of was the included documentation and the command list.
Honestly both were confusing and I had a hard time getting started.
I think if we could put together a good tutorial or at least a little article on each command and how to use it.
There aren't any good tutorials probably because it is too large for anyone, if members could post the articles individually it will be much easier.
Hopefully a good how-to will attract more programmers!

I was thinking an article would look a lot like:

Command: Disp (string),(string)...
Example:
:.EXAMPLE
:Disp "HI!"
 When this is compiled and run it shows:
HI!

... Or something like that...
Is this a good idea or won't it come to anything?


309
Axe / Re: Axe Q&A
« on: January 12, 2016, 05:21:03 pm »
Thanks!
Maybe you can add it in 1.3 if there is enough space.

310
Axe / Re: Axe Q&A
« on: January 12, 2016, 04:20:36 pm »
I may wind up using memkit...

311
Axe / Re: Axe Q&A
« on: January 12, 2016, 03:11:44 pm »
Is there a way to re-size an appvar? I was hoping to just use x -> {ptr-2}r but that didn't work.
(I know about making a new one and copying, but My appvar can get bigger than half of max RAM)
Thanks!

312
The Axe Parser Project / Re: Axe Parser
« on: January 11, 2016, 05:06:45 pm »
Hey Runner, I know you are busy but how much time do you think it will take to finish Axe 1.3.0?

313
TI Z80 / Re: Small Font Program Editor
« on: January 06, 2016, 06:06:50 pm »
I have spent some more time on the project and I have fleshed out some more of the menus and reduced the file size some.
I also added a flashing cursor and APD.
I am looking for anyone who is willing to beta test this project. (Dudeman313, you said you were interested in beta testing...)

Is there any interest in this project?

314
The Axe Parser Project / Re: Axe Parser
« on: December 17, 2015, 04:04:20 pm »
How is Axe 1.3 coming along?

315
TI Z80 / Re: Small Font Program Editor
« on: December 15, 2015, 05:43:19 pm »
I have fixed several bugs and I added a temporary feature to recall form the catalog - hopefully this will be fixed as it just uses axe's input command.
I have identified that while str1 and gdb1 are displayed correctly when recalled from a menu they won't add correctly.

Also, Runner why did you move this to z80? It is written in Axe.   ???

I probably will keep posting updates whether or not anyone else posts.
(Is there any interest in this or is it just me?)

Pages: 1 ... 19 20 [21] 22 23 24