Calculator Community > Axe

Axe Q&A

(1/398) > >>

squidgetx:
Since we no longer have the Axe Parser general thread due to the forum split (and since q/a wasn't even that appropriate for the Axe Parser thread), this topic will be the new quick question/answer thread. :)
If you have any quick questions about Axe programming: things that you feel don't quite merit their own thread, feel free to post them here. :) Anyone able to answer your question will most certainly do so.

Questions like "What does [function] do" or "How do I do grayscale" are suited for this thread, while we encourage the creation of a new thread for more indepth questions and issues :)

FAQ/RANDOM:

Please, do not refer to Axe "lists" L1, L2, etc. as "lists." Instead, refer to them as "saferam" or "free ram." The term "list" is reserved for the OS lists that are used in plots and BASIC
Q-Help! Why doesn't Fill({L1},1000) work?
Fill() takes a pointer as an argument. Fill({L1},XXX) is incorrect. You want Fill(L1,XXX). Same with the Copy/Exch commands.[/green]

Q-Help! My program is inexplicably crashing on execution!
A-Asm programs have a size limit of 8192 bytes. If you compile for MOS/DCS, you have a limit of 8811 bytes of code, and unlimited data (well as much data that you can fit into RAM). If you're over 8811 bytes, you might want to think about compiling to an application, using Crabcake or Fullrene. or optimizing some more.

Q-How come this doesn't work: 0->{GDB1+xxxx}???
A-GDB1, Str1, etc. are all static pointers This means that you aren't supposed to change the data defined there. You can however, do this (called SMC; and be warned that it will not work in an application) by using Copy and Exch, or by storing the static pointer to a variable and then using that variable as a pointer instead, eg GDB1->theta:0->{theta}

Q-How do I do realistic gravity???
A: Check out Builderboy's physics lessons.

aeTIos:
Yay 1st question!

How to deal with variable string lengths, like as in an input routine?

Builderboy:
what do you mean how to deal with them?  What do you need to do?

aeTIos:
I mean, if you put in some data in str1, the next time you start the program the same data is still in str1 ( maybe this is more like self-modifying-code )

Deep Toaster:
You mean saving back to the program? Because (as you probably know) Str1 isn't a real variable. It's a chunk of bytes in the program itself. So if you want to save back to the program, you have to find the program in memory, then calculate the offset of Str1 from the beginning of the program, then Copy( the bytes there. I made a little routine to do that in PapiJump :D Let's see if I can find it...

Navigation

[0] Message Index

[#] Next page

Go to full version