| Author |
Message |
|
souvik1997

Guru-in-Training

Joined: 19 Apr 2010 Posts: 2870
|
|
| Back to top |
|
|
SirCmpwn

Coding Knight

Joined: 06 Feb 2010 Posts: 1477 Location: Colorado Springs
|
Posted: 20 Sep 2011 10:09:26 am Post subject: |
|
|
To create:
Code: GetCalc("appvNAME", size)→PointerToData
To modify:
Code: GetCalc("appvNAME")→PointerToData
To delete:
Code: DelVar "appvNAME"
_________________ Drew "Sir Cmpwn" DeVault |
|
| Back to top |
|
|
Ashbad

I am governor Jerry Brown

Joined: 01 Dec 2010 Posts: 2423 Location: There lived a certain man in Russia long ago
|
Posted: 20 Sep 2011 02:36:12 pm Post subject: |
|
|
Well, Sir, you're "Modify" example just gets the address of the first byte of the appvar. Souvik's is more accurate describing how to *modify* it. _________________ -Ashbad |
|
| Back to top |
|
|
seana11

Super-Expert

Joined: 23 May 2011 Posts: 833 Location: Well, the sign says "You are here"...
|
|
| Back to top |
|
|
Ashbad

I am governor Jerry Brown

Joined: 01 Dec 2010 Posts: 2423 Location: There lived a certain man in Russia long ago
|
Posted: 20 Sep 2011 02:37:35 pm Post subject: |
|
|
| seana11 wrote: | | Is there any menu framework for axe? (Like what Mufin made, only for axe) |
None really made at the moment, but it shouldn't be too hard to make. _________________ -Ashbad |
|
| Back to top |
|
|
SirCmpwn

Coding Knight

Joined: 06 Feb 2010 Posts: 1477 Location: Colorado Springs
|
Posted: 20 Sep 2011 02:43:38 pm Post subject: |
|
|
What do you mean by menus? I've done something similar. _________________ Drew "Sir Cmpwn" DeVault |
|
| Back to top |
|
|
seana11

Super-Expert

Joined: 23 May 2011 Posts: 833 Location: Well, the sign says "You are here"...
|
|
| Back to top |
|
|
SirCmpwn

Coding Knight

Joined: 06 Feb 2010 Posts: 1477 Location: Colorado Springs
|
Posted: 20 Sep 2011 02:47:26 pm Post subject: |
|
|
Check here _________________ Drew "Sir Cmpwn" DeVault |
|
| Back to top |
|
|
_player1537

Guru-in-Training

Joined: 25 Nov 2009 Posts: 2958
|
Posted: 20 Sep 2011 07:38:43 pm Post subject: |
|
|
Any chance that that post could be cross-posted here? I don't want to get out a proxy to see what it is :/ _________________ http://tanner.myserverathome.com
 |
|
| Back to top |
|
|
Sorunome

Expert

Joined: 22 Feb 2011 Posts: 642 Location: Somewhere out there
|
|
| Back to top |
|
|
SirCmpwn

Coding Knight

Joined: 06 Feb 2010 Posts: 1477 Location: Colorado Springs
|
Posted: 21 Sep 2011 09:33:09 am Post subject: |
|
|
_player1357, I myself would need a proxy to do that
Pointers are a much broader and very important topic. Have you read Quigibo's manual? _________________ Drew "Sir Cmpwn" DeVault |
|
| Back to top |
|
|
Sorunome

Expert

Joined: 22 Feb 2011 Posts: 642 Location: Somewhere out there
|
Posted: 21 Sep 2011 09:40:55 am Post subject: |
|
|
me? no can you plz link? _________________



 |
|
| Back to top |
|
|
Dr Phil
Newbie

Joined: 17 Sep 2011 Posts: 35 Location: Sweden
|
Posted: 21 Sep 2011 09:58:50 am Post subject: |
|
|
If you have downloaded Axe from ticalc.org there should be a file called "Documentation.pdf" containing the manual. Otherwise it's also available here.
The command list index is also useful. link |
|
| Back to top |
|
|
Sorunome

Expert

Joined: 22 Feb 2011 Posts: 642 Location: Somewhere out there
|
Posted: 21 Sep 2011 10:02:06 am Post subject: |
|
|
Oh, that thing! Ok, thanks _________________



 |
|
| Back to top |
|
|
Dr Phil
Newbie

Joined: 17 Sep 2011 Posts: 35 Location: Sweden
|
Posted: 22 Sep 2011 09:39:40 am Post subject: |
|
|
| How do I send information from one calculator to another? I think Get and Send( is involved, but I can't get it to work. Must I set the Port to something first? Code examples is welcome. |
|
| Back to top |
|
|
SirCmpwn

Coding Knight

Joined: 06 Feb 2010 Posts: 1477 Location: Colorado Springs
|
Posted: 22 Sep 2011 10:13:18 am Post subject: |
|
|
The link port basically only allows for the transmission of two bits at a time. Axe offers direct access to this functionality by allowing you to store to the "variable" Port, and it will only utilize the first two bits of the value you sent it.
However, if you want to send an entire byte, you can create your own routine, or use the built-in Get and Send( routines. Send(BYTE, TIME) will attempt to send BYTE to a connected calculator. It will keep trying until the other calculator executes Get, or it times out after TIME (microseconds).
The other calculator should use the "variable" Get to receive this data. If it fails, it returns -1. If it succeeds, it returns the value sent.
Calculator 1 - Sending 42
Code: .SEND
Disp "Sending 42"
If Send(42,10000)
Disp "Success"
Else
Disp "Failure"
End
Calculator 2 - Receiving
Code: .RECEIVE
Disp "Waiting..."
Get→A
If A=-1
Disp "Failure"
Else
Disp "Success: ", A>Dec
End
_________________ Drew "Sir Cmpwn" DeVault |
|
| Back to top |
|
|
Sorunome

Expert

Joined: 22 Feb 2011 Posts: 642 Location: Somewhere out there
|
Posted: 22 Sep 2011 11:35:24 am Post subject: |
|
|
I got a question: I got the pointer "F" of a appvariable in ram, and I want to stor it in Archieve.
Why doesn't Archive F work? _________________



 |
|
| Back to top |
|
|
Dr Phil
Newbie

Joined: 17 Sep 2011 Posts: 35 Location: Sweden
|
Posted: 22 Sep 2011 12:01:51 pm Post subject: |
|
|
| Thanks for the help SirC, I probably should have said that I want to connect the calculators with the USB cable, since that's the only cable I have available. |
|
| Back to top |
|
|
SirCmpwn

Coding Knight

Joined: 06 Feb 2010 Posts: 1477 Location: Colorado Springs
|
Posted: 22 Sep 2011 12:48:39 pm Post subject: |
|
|
Then you've just made it hundreds of times more complex. Read up on WikiTI about the USB ports and see if you can figure it out. It's very complicated, and not fully understood.
Sorunome, you need a pointer to the name of it. For example,
Code: "appvHELLO"→Str1
Archive Str1
You might be able to use ArchiveVar if you're clever. _________________ Drew "Sir Cmpwn" DeVault |
|
| Back to top |
|
|
Sorunome

Expert

Joined: 22 Feb 2011 Posts: 642 Location: Somewhere out there
|
Posted: 22 Sep 2011 01:00:53 pm Post subject: |
|
|
ok, thanks!  _________________



 |
|
| Back to top |
|
|
|