CEMETECH
Leading The Way To The Future
Login [Register]
Username:
Password:
Autologin:

Don't have an account? Register now to chat, post, use our tools, and much more.
Latest Headlines
Online Users
There are 139 users online: 4 members, 108 guests and 27 bots.
Members: CalebHansberry, geekboy1011, Piguy-3.14.
Bots: Spinn3r (1), Magpie Crawler (2), VoilaBot (6), Googlebot (18).
RSS & Social Media
SAX
You must log in to view the SAX chat widget
    » Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9  Next
» View previous topic :: View next topic  
Author Message
souvik1997


Guru-in-Training


Joined: 19 Apr 2010
Posts: 2870

Posted: 20 Sep 2011 06:52:17 am    Post subject:

It's been a while sine I used Axe, but I think you can do something like this:

Code:
:GetCalc("appvAPPVAR")->A
:3->{A}

This will store 3 to the first byte of appvar APPVAR.
_________________
CALCnet Tournament-38%


deviantArt
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"...

Posted: 20 Sep 2011 02:36:34 pm    Post subject:

Is there any menu framework for axe? (Like what Mufin made, only for axe)
_________________

Code:
-----BEGIN GEEK CODE BLOCK-----
GCS d- s+: a---@ C+++ UL++ P L+++ E- W++ N o? K? w--- O? M--
V- PS++(--) PE- Y+ PGP t 5? X(+) R tv-- b++(+++) DI+(++)
D(+) G e-(*)>++@ h! r!>+++ y?
------END GEEK CODE BLOCK------
decoded
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"...

Posted: 20 Sep 2011 02:46:57 pm    Post subject:

Anything from TI-OS menu type to GECUMESY.
_________________

Code:
-----BEGIN GEEK CODE BLOCK-----
GCS d- s+: a---@ C+++ UL++ P L+++ E- W++ N o? K? w--- O? M--
V- PS++(--) PE- Y+ PGP t 5? X(+) R tv-- b++(+++) DI+(++)
D(+) G e-(*)>++@ h! r!>+++ y?
------END GEEK CODE BLOCK------
decoded
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

Posted: 21 Sep 2011 09:16:30 am    Post subject:

SirCmpwn wrote:
To create:

Code:
GetCalc("appvNAME", size)→PointerToData

To modify:

Code:
GetCalc("appvNAME")→PointerToData

To delete:

Code:
DelVar "appvNAME"

is the appv a tolken? ANd how do I read? And I don't get that PointerToData.........
_________________



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 Smile

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! Smile 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! Smile
_________________



Back to top
Display posts from previous:   
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
    » Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9  Next
» View previous topic :: View next topic  
Page 4 of 9 » All times are GMT - 5 Hours

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© Copyright 2000-2013 Cemetech & Kerm Martian :: Page Execution Time: 0.041197 seconds.