Omnimaga: The Coders Of Tomorrow
Welcome, Guest. Please login or register.
 
Omnimaga: The Coders Of Tomorrow
18 June, 2013, 08:45:26 *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   home   news downloads projects tutorials misc forums rules new posts irc about Login Register  
+-OmnomIRC

You must Register, be logged in and have at least 40 posts to use this shout-box! If it still doesn't show up afterward, it might be that OmnomIRC is disabled for your group or under maintenance.

Note: You can also use an IRC client like mIRC, X-Chat or Mibbit to connect to an EFnet server and #omnimaga.

Pages: [1] 2 3   Go Down
  Print  
Author Topic: Calcnet Axiom -  (Read 2635 times) Bookmark and Share
0 Members and 1 Guest are viewing this topic.
Geekboy1011
The Oneironaut
Support Staff
LV10 31337 u53r (Next: 2000)
*
Offline Offline

Gender: Male
Last Login: Today at 06:49:30
Date Registered: 11 June, 2009, 01:27:44
Location: Buried in cherry flavored source code
Posts: 1535


Topic starter
Total Post Ratings: +88

View Profile
« on: 11 February, 2012, 05:35:16 »
0

Planed features:
  -Interact with calcnet routines and such for handeling data
  -Offer data handlers that may be slow but will help prevent misfires
  -Anything else you want like things to manage connections and such
  -The mandatory splash screen for gcn (you can just add in the required image to your game if you want will explain in readme)

Issues:
 I can say now. L1 and L3 will suffer if you use calcnet nothing can be done about it it is where Kerm keeps the stuff CalcNet lives on

 The Key routines will mimic axe's but will  not be the same

anything else thats needed or wanted ask. I will also be using this thread for help on making axioms as some of it is like LOLWUT to me. but at least I get calcnet xD



Currently Accomplished:
 
 Command set:
   SetS Sets the ok to send flag
   ResS Resets the ok to send flag  note i see no applicable use other than to change data if the data in the buffer was not sent in a reasonable time
   SetR Sets the "you got data" flag, only applicable use is to block incoming messages
   ResR Resets the "You got data flah" Allows more data to come in
   
    GetS returns the send buffer flag
   GetR returns the recieve buffer flag


There is also a wrapper that sets up pointers for use.
« Last Edit: 14 February, 2012, 22:26:14 by Geekboy1011 » Logged

Yumé - The Eternal Dreams(tsukasaZX's project): music making working on second piece
PROJECT:TiX - planning stages almost done few more things to think about then i start coding so coding should commence tommorow or the NULL of NULL yay
Project/Mod Cadan: CD  -   My (first?!?) mod of the cadan engine for a not so demoified version of the game : HOLD :Is here
Beta testing: -  Correlation: Wordwrap abuse IF Adventure style
Quigibo
The Executioner
LV11 Super Veteran (Next: 3000)
***********
Offline Offline

Gender: Male
Last Login: 31 May, 2013, 10:48:29
Date Registered: 22 January, 2010, 05:02:37
Location: Los Angeles
Posts: 2022


Total Post Ratings: +1019

View Profile
« Reply #1 on: 11 February, 2012, 09:57:30 »
0

If your axiom was for instance:


1
2
ld hl,1
ret

You would make that field "4" because the size of the command is 4 bytes long.  The size includes replacement prefixes by the way if you use those.  What most programmers do is add a .org 0 after the header, add a label to the end of the command, and then make this label the size field.  At the end of the Axiom, you just add on $0000 to indicate there are no more commands.

You might also want to check out MemKit.z80 in the Tools section of Axe for an example of how an Axiom should look.  Good luck Smiley

Also, L1 and L3?  That seems excessive... I wonder why Kerm would need 1536 bytes of static Ram just to run calcnet, especially as these are the most common buffers assembly programmers use.
« Last Edit: 11 February, 2012, 10:01:41 by Quigibo » Logged

___Axe_Parser___
Today the calculator, tomorrow the world!
DJ Omnimaga
Retired Omnimaga founder (Site issues must be PM'ed to Netham45, Eeems, Shmibs, Deep Thought and AngelFish, not me.)
Editor
LV15 Omnimagician (Next: --)
*
Online Online

Gender: Male
Last Login: Today at 08:20:57
Date Registered: 25 August, 2008, 07:00:21
Location: Québec (Canada)
Posts: 50600


Total Post Ratings: +2634

View Profile WWW
« Reply #2 on: 11 February, 2012, 11:05:15 »
0

A Calcnet axiom would definitively be great. I believe Compynerd255 was making one before, but I haven't heard about him ever since.
Logged

Retired 83+ coder, Omnimaga/TIMGUL founder. Now doing power metal music (formerly did electronica)

Follow me on Bandcamp|Facebook|Reverbnation|Youtube|Twitter|Myspace
Geekboy1011
The Oneironaut
Support Staff
LV10 31337 u53r (Next: 2000)
*
Offline Offline

Gender: Male
Last Login: Today at 06:49:30
Date Registered: 11 June, 2009, 01:27:44
Location: Buried in cherry flavored source code
Posts: 1535


Topic starter
Total Post Ratings: +88

View Profile
« Reply #3 on: 11 February, 2012, 14:59:16 »
0

well he doesnt use all of them. he uses 226 bytes of so of L1 and 100bytes or so of L3. and will do thanks quigbo ^^
Logged

Yumé - The Eternal Dreams(tsukasaZX's project): music making working on second piece
PROJECT:TiX - planning stages almost done few more things to think about then i start coding so coding should commence tommorow or the NULL of NULL yay
Project/Mod Cadan: CD  -   My (first?!?) mod of the cadan engine for a not so demoified version of the game : HOLD :Is here
Beta testing: -  Correlation: Wordwrap abuse IF Adventure style
Xeda112358
Xombie. I am it.
Coder Of Tomorrow
LV12 Extreme Poster (Next: 5000)
*
Offline Offline

Last Login: Today at 04:03:27
Date Registered: 31 October, 2010, 08:46:36
Location: Land of Little Cubes and Tea, NY
Posts: 3781


Total Post Ratings: +614

View Profile
« Reply #4 on: 11 February, 2012, 15:34:24 »
0

Hmm, so why didn't he just put it all in one place? Big frown Is it so that it can work around DCS? Undecided
Logged



Grammer Download (2.29.04.12)
Latest update (possibly incomplete)
My pastebin
Spoiler for FileSyst:
FileSyst is an application that provides a folder and filesystem for the TI-83+/84+ calculators. It is designed to be easy to access and use in BASIC, and it can be used to access game files and save data, or to create a command prompt, among other things:

Spoiler for Graphiti:
This is a graph explorer for graph theory. It will require lots of work to finish. Currently you can:
Add/delete vertices
Add edges (direction not shown, but they are directed)
Arrange vertices in a circle (in the future, you will be able to define levels of rings and the number of nodes in each)
Create complete graphs quickly

Plans:
Add adjacency matrix viewer
Deleting edges
Multiple graphs support
Arrows for directed graphs
Planarity testing
Matrix operations
Weighted edges
Chromatic polynomials
Chromatic numbers

Spoiler for Stats:

Samocal             [o---------]
Virtual Processor   [o---------]
EnG                 [oo--------]
Grammer             [ooo-------]
AsmComp             [ooo-------]
Partex              [oooo------]
BatLib              [oooooooo--]
Grammer82           [----------]
Grammer68000        [----------]


Pseudonyms:  Zeda, Xeda, Thunderbolt
Languages:   English, français
Programming: z80 Assmebly
             Grammer
             TI-BASIC (83/84/+/SE, 89/89t/92)
Known For:   -Creator of the Grammer programming language
              (Winning program of zContest2011)
             -BatLib- One of the most feature packed libraries for BASIC programmers available
              with over 100 functions and a simple programming language
             -Learning to program z80 in hexadecimal before using an assembler (no computer was
              available!)
╔═╦╗░╠═╬╣▒║ ║║▓╚═╩╝█


Geekboy1011
The Oneironaut
Support Staff
LV10 31337 u53r (Next: 2000)
*
Offline Offline

Gender: Male
Last Login: Today at 06:49:30
Date Registered: 11 June, 2009, 01:27:44
Location: Buried in cherry flavored source code
Posts: 1535


Topic starter
Total Post Ratings: +88

View Profile
« Reply #5 on: 11 February, 2012, 20:50:54 »
0

nay the useage on L1 is the send/recive buffers and info pertaining to them. on L3 at $9999 is his ram routine for his interrupt
and also on L3 at $9A00 - $9B01 is used for his vector table.

also i meant 547bytes of L1 oops math fail

http://dcs.cemetech.net/index.php?title=Interfacing_CALCnet2#Routines

look at cn2_setup for more info that inst stupidified by me >.> <.<



also what is the token info for normalCDF (2nd+vars,  2) i cant find it in the include file

also if i am returning a pointer(or anything else) from a command. i would just do

1
2
ld hl,address
and thats it?
« Last Edit: 11 February, 2012, 23:46:10 by Geekboy1011 » Logged

Yumé - The Eternal Dreams(tsukasaZX's project): music making working on second piece
PROJECT:TiX - planning stages almost done few more things to think about then i start coding so coding should commence tommorow or the NULL of NULL yay
Project/Mod Cadan: CD  -   My (first?!?) mod of the cadan engine for a not so demoified version of the game : HOLD :Is here
Beta testing: -  Correlation: Wordwrap abuse IF Adventure style
Quigibo
The Executioner
LV11 Super Veteran (Next: 3000)
***********
Offline Offline

Gender: Male
Last Login: 31 May, 2013, 10:48:29
Date Registered: 22 January, 2010, 05:02:37
Location: Los Angeles
Posts: 2022


Total Post Ratings: +1019

View Profile
« Reply #6 on: 12 February, 2012, 00:46:41 »
0

Yes, if its a static address.  If its a pointer to data that your Axiom has added, you don't even need it at all since its done automatically with AXM_DATA.

Also, you probably aren't using this, but if you want it to return pointer to axiom code that you want the programmer to jump to, you'd have to use a replacement with REP_NEXT, but that's an advanced feature.
Logged

___Axe_Parser___
Today the calculator, tomorrow the world!
Geekboy1011
The Oneironaut
Support Staff
LV10 31337 u53r (Next: 2000)
*
Offline Offline

Gender: Male
Last Login: Today at 06:49:30
Date Registered: 11 June, 2009, 01:27:44
Location: Buried in cherry flavored source code
Posts: 1535


Topic starter
Total Post Ratings: +88

View Profile
« Reply #7 on: 12 February, 2012, 08:00:46 »
0

any one know why this token hook isn't sticking?


1
2
3
4
5
.dw hInvT
.db 7
.db "Cn2.2id"

Logged

Yumé - The Eternal Dreams(tsukasaZX's project): music making working on second piece
PROJECT:TiX - planning stages almost done few more things to think about then i start coding so coding should commence tommorow or the NULL of NULL yay
Project/Mod Cadan: CD  -   My (first?!?) mod of the cadan engine for a not so demoified version of the game : HOLD :Is here
Beta testing: -  Correlation: Wordwrap abuse IF Adventure style
Runer112
Project Author
LV10 31337 u53r (Next: 2000)
*
Online Online

Gender: Male
Last Login: Today at 08:17:00
Date Registered: 02 July, 2009, 06:38:05
Posts: 1693


Total Post Ratings: +496

View Profile
« Reply #8 on: 12 February, 2012, 19:12:21 »
0

Yeah, that's because it's a "new" token and is sent to the token hook in a special manner that Axe doesn't handle. I didn't add handling for it because I wasn't entirely sure how to account for it without introducing other problems on calculators with older OSes, but I think I've found a way to fix it now.

Also, I'll try to fix the issue where I stupidly forgot to account for the possibility that the Axiom name in the source code contains tokens that aren't equivalent to their ASCII values.
Logged
Quigibo
The Executioner
LV11 Super Veteran (Next: 3000)
***********
Offline Offline

Gender: Male
Last Login: 31 May, 2013, 10:48:29
Date Registered: 22 January, 2010, 05:02:37
Location: Los Angeles
Posts: 2022


Total Post Ratings: +1019

View Profile
« Reply #9 on: 13 February, 2012, 04:51:12 »
0

Yeah, that's because it's a "new" token and is sent to the token hook in a special manner that Axe doesn't handle. I didn't add handling for it because I wasn't entirely sure how to account for it without introducing other problems on calculators with older OSes, but I think I've found a way to fix it now.
Do you mind explaining that a bit?  I don't see anything in the code that would prevent new tokens from being used...

Also you don't need to handle that case with Axiom names because Axioms are required to only contain the A-Z, a-z, and 0-9 characters anyway.  This is just to ensure they are easily typeable, valid, and unambiguous.
« Last Edit: 13 February, 2012, 04:51:41 by Quigibo » Logged

___Axe_Parser___
Today the calculator, tomorrow the world!
Runer112
Project Author
LV10 31337 u53r (Next: 2000)
*
Online Online

Gender: Male
Last Login: Today at 08:17:00
Date Registered: 02 July, 2009, 06:38:05
Posts: 1693


Total Post Ratings: +496

View Profile
« Reply #10 on: 13 February, 2012, 04:54:32 »
0

Oh no, A-Z and 0-9 are fine. That's why I didn't discover the bug myself. The issue is a-z.

EDIT: Forgot to answer your first question. Tokens after GarbageCollect are passed in a special manner. But I've added code to handle this and will give you my updated token hook once I fix the above problem as well.
« Last Edit: 13 February, 2012, 04:56:40 by Runer112 » Logged
Geekboy1011
The Oneironaut
Support Staff
LV10 31337 u53r (Next: 2000)
*
Offline Offline

Gender: Male
Last Login: Today at 06:49:30
Date Registered: 11 June, 2009, 01:27:44
Location: Buried in cherry flavored source code
Posts: 1535


Topic starter
Total Post Ratings: +88

View Profile
« Reply #11 on: 14 February, 2012, 22:31:20 »
0

The calcnet interrupt handles turning the calc on and off with [on]. but when i do so with this code running


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
:.KEY
:AsmComp(GCNAXE)
:prgmGCNLIB
:CnOn
:
:For(A,0,255)
:Disp GetKey►Dec,i
:Pause 100
:End
:
:CnOff
:Stop
:Return
Generated by SourceCoder (http://sc.cemetech.net)
© 2005-2012 Cemetech (http://www.cemetech.net)

It locks up after you turn the calc back on.  The for loop just does not continue to run, as I can still turn the calc on and off.  any ideas?


Edit: i like it pauses for a while then starts up again....
« Last Edit: 14 February, 2012, 22:45:02 by Geekboy1011 » Logged

Yumé - The Eternal Dreams(tsukasaZX's project): music making working on second piece
PROJECT:TiX - planning stages almost done few more things to think about then i start coding so coding should commence tommorow or the NULL of NULL yay
Project/Mod Cadan: CD  -   My (first?!?) mod of the cadan engine for a not so demoified version of the game : HOLD :Is here
Beta testing: -  Correlation: Wordwrap abuse IF Adventure style
Geekboy1011
The Oneironaut
Support Staff
LV10 31337 u53r (Next: 2000)
*
Offline Offline

Gender: Male
Last Login: Today at 06:49:30
Date Registered: 11 June, 2009, 01:27:44
Location: Buried in cherry flavored source code
Posts: 1535


Topic starter
Total Post Ratings: +88

View Profile
« Reply #12 on: 03 March, 2012, 06:16:02 »
0

so lets see how this works....open beta go?!?!?


everything needed is in the zip even the source. i just need someone to tell me if it works. i just cant understand axe...

have any questions pertaining to calcnet just ask. ill be more than willing to show you how it works if kerm's documentation is confusing you.

there is no guarentee that this works. and it is by no means even close to dont. this just has the basic api in it.


also read through the program in the wrapper i forgot to lable what they are. ill make a edit later with that info. they should be self explanatory tho ^^

warning these are screen stretchers
Spoiler for Flowcharts:
[/
Spoiler for Hidden:
« Last Edit: 08 March, 2012, 06:48:34 by Geekboy1011 » Logged

Yumé - The Eternal Dreams(tsukasaZX's project): music making working on second piece
PROJECT:TiX - planning stages almost done few more things to think about then i start coding so coding should commence tommorow or the NULL of NULL yay
Project/Mod Cadan: CD  -   My (first?!?) mod of the cadan engine for a not so demoified version of the game : HOLD :Is here
Beta testing: -  Correlation: Wordwrap abuse IF Adventure style
Geekboy1011
The Oneironaut
Support Staff
LV10 31337 u53r (Next: 2000)
*
Offline Offline

Gender: Male
Last Login: Today at 06:49:30
Date Registered: 11 June, 2009, 01:27:44
Location: Buried in cherry flavored source code
Posts: 1535


Topic starter
Total Post Ratings: +88

View Profile
« Reply #13 on: 04 March, 2012, 22:19:07 »
0

shameless bump as i want to get this out for you people to use
Logged

Yumé - The Eternal Dreams(tsukasaZX's project): music making working on second piece
PROJECT:TiX - planning stages almost done few more things to think about then i start coding so coding should commence tommorow or the NULL of NULL yay
Project/Mod Cadan: CD  -   My (first?!?) mod of the cadan engine for a not so demoified version of the game : HOLD :Is here
Beta testing: -  Correlation: Wordwrap abuse IF Adventure style
KermMartian
Editor
LV6 Super Member (Next: 500)
*
Offline Offline

Gender: Male
Last Login: Today at 03:20:08
Date Registered: 27 April, 2010, 23:47:22
Location: NYC
Posts: 400


Total Post Ratings: +186

View Profile WWW
« Reply #14 on: 04 March, 2012, 22:27:43 »
0

Hmm, so why didn't he just put it all in one place? Big frown Is it so that it can work around DCS? Undecided
Only 547 bytes in "L1" is actually for CALCnet.  The other 100-odd you only have to worry about if you're also using the Doors CS GUI API with CALCnet. Believe it or not, I actually use my brain when I design things. Wink

Edit: Oh yes, and the L3 stuff for interrupts, of course, but that's nothing extraordinary.
« Last Edit: 04 March, 2012, 22:28:27 by KermMartian » Logged



Pages: [1] 2 3   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Powered by MySQL Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Powered by PHP
Page created in 0.429 seconds with 31 queries.
Skin by DJ Omnimaga edited from SMF default theme with the help of tr1p1ea.
All programs, games and songs avaliable on this website are property of their respective owners.
Best viewed in Opera, Firefox, Chrome and Safari with a resolution of 1024x768 or above.