| Author |
Message |
|
geekboy1011

Expert

Joined: 19 Jul 2009 Posts: 607
|
Posted: 14 Feb 2012 03:18:35 pm Post subject: Calcnet Axiom |
|
|
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 0x5 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. _________________ Cadan: CD : My (first?!?) mod of the cadan engine for a not so demoified version of the game :HOLD
Cn2.2 Wireless Bridge : Still in the design phase.
Contest #9 Cn2.2 Ika Shmup |
|
| Back to top |
|
|
geekboy1011

Expert

Joined: 19 Jul 2009 Posts: 607
|
Posted: 14 Feb 2012 05:13:14 pm Post subject: |
|
|
ok Question time. Kerm what sections of ram does the portion of code that turns the calculator on and off use? as its breaking something with axe >.< _________________ Cadan: CD : My (first?!?) mod of the cadan engine for a not so demoified version of the game :HOLD
Cn2.2 Wireless Bridge : Still in the design phase.
Contest #9 Cn2.2 Ika Shmup |
|
| Back to top |
|
|
KermMartian

Site Admin

Joined: 14 Mar 2005 Posts: 55882 Location: Earth, Sol, Milky Way
|
Posted: 14 Feb 2012 07:51:58 pm Post subject: |
|
|
| geekboy1011 wrote: | | ok Question time. Kerm what sections of ram does the portion of code that turns the calculator on and off use? as its breaking something with axe >.< | This is literally all it does in that code:
Code: ;start with Off stuff
in a,(4)
bit 0,a
jr z,Cn2_NoOff
ld a,2
out ($10),a ;turn off screen
res OnInterrupt,(iy+OnFlags)
bcall(_debounceon)
im 1
eI ; disable interrupts
ld a,1
out (3),a
halt
di
im 1
res OnInterrupt,(iy+OnFlags)
ld a,3
out ($10),a ;turn off screen
bcall(_debounceon)
_________________
 |
|
| Back to top |
|
|
geekboy1011

Expert

Joined: 19 Jul 2009 Posts: 607
|
Posted: 14 Feb 2012 09:36:58 pm Post subject: |
|
|
uhm Kerm i have to ask. why do you
Code:
im 1
ei ; DISABLES INTERRUPTS????
</stuff>
im 1
that just makes no sense to me....
oh and some how when that code is getting called it is destroying hl apparently _________________ Cadan: CD : My (first?!?) mod of the cadan engine for a not so demoified version of the game :HOLD
Cn2.2 Wireless Bridge : Still in the design phase.
Contest #9 Cn2.2 Ika Shmup |
|
| Back to top |
|
|
KermMartian

Site Admin

Joined: 14 Mar 2005 Posts: 55882 Location: Earth, Sol, Milky Way
|
|
| Back to top |
|
|
geekboy1011

Expert

Joined: 19 Jul 2009 Posts: 607
|
Posted: 14 Feb 2012 10:31:38 pm Post subject: |
|
|
The only time the shadows are used is in custom interupgs (not being used here) and grey-scale updating. again not in use here >.<
also can you clarify why you im 1 there?
EDIT:
Code:
_:
ld b,$10
_:
in a,($04)
bit 3,a
jr z,--_
djnz -_
well thats deobounce on. it does not touch hl >.<
edit i lie thats the code that is called when you handle the on key. i have yet to find the code you pasted _________________ Cadan: CD : My (first?!?) mod of the cadan engine for a not so demoified version of the game :HOLD
Cn2.2 Wireless Bridge : Still in the design phase.
Contest #9 Cn2.2 Ika Shmup |
|
| Back to top |
|
|
geekboy1011

Expert

Joined: 19 Jul 2009 Posts: 607
|
Posted: 15 Feb 2012 11:33:28 pm Post subject: |
|
|
Ok I think the bug was found. In this code
| KermMartian wrote: |
Code: ;start with Off stuff
in a,(4)
bit 0,a
jr z,Cn2_NoOff
ld a,2
out ($10),a ;turn off screen
res OnInterrupt,(iy+OnFlags)
bcall(_debounceon)
im 1
eI ; disable interrupts
ld a,1
out (3),a
halt
di
im 1
res OnInterrupt,(iy+OnFlags)
ld a,3
out ($10),a ;turn off screen
bcall(_debounceon)
|
You are in an interupt. and then you
Code:
im 1
ei
...
halt
doest flop out the shadow registers for the program registers use them then flip them back because your in an interupt?
and yes I have gotten this to crash netpong as well and make it display garbage by just using the on key in combination with second (to restart the game when the ball hits the side). _________________ Cadan: CD : My (first?!?) mod of the cadan engine for a not so demoified version of the game :HOLD
Cn2.2 Wireless Bridge : Still in the design phase.
Contest #9 Cn2.2 Ika Shmup |
|
| Back to top |
|
|
KermMartian

Site Admin

Joined: 14 Mar 2005 Posts: 55882 Location: Earth, Sol, Milky Way
|
Posted: 16 Feb 2012 12:48:07 am Post subject: |
|
|
I must be looking at the wrong code or something, because I agree that that bit of code makes no sense. I have noticed a double _________________
 |
|
| Back to top |
|
|
elfprince13

OVER NINE THOUSAND!

Joined: 23 May 2005 Posts: 10247 Location: A galaxy far far away......
|
|
| Back to top |
|
|
comicIDIOT

Guru

Joined: 01 May 2006 Posts: 5140 Location: SFBA, California
|
Posted: 16 Feb 2012 02:54:36 am Post subject: |
|
|
I was going to say something on SAX but I assumed he was posting from his phone by the amount of KermMartians joining SAX, so I just laid belief that he would catch it.
My faith is starting to waiver.  _________________
-Alex |
|
| Back to top |
|
|
KermMartian

Site Admin

Joined: 14 Mar 2005 Posts: 55882 Location: Earth, Sol, Milky Way
|
Posted: 16 Feb 2012 11:38:30 am Post subject: |
|
|
| comicIDIOT wrote: | I was going to say something on SAX but I assumed he was posting from his phone by the amount of KermMartians joining SAX, so I just laid belief that he would catch it.
My faith is starting to waiver.  | I had to go to sleep, so I hit "Post" on my phone despite not being done with the post and figured I'd fix it this morning.
I must be looking at the wrong code or something, because I agree that that bit of code makes no sense. I have noticed a double shut-off when pressing [ON] (that is, the calculator turns on, off and then on again when you press [ON] from the CALCnet interrupt), so this could be related. I'm glad you're bringing this up before I finished and released DCS 7.2; this is what I get for re-using code I wrote seven years ago without proofreading it.  _________________
 |
|
| Back to top |
|
|
geekboy1011

Expert

Joined: 19 Jul 2009 Posts: 607
|
Posted: 16 Feb 2012 01:46:10 pm Post subject: |
|
|
0x5 well I am pretty sure that in the code in wabbit you are doing more or less the same thing. Its actually not even the code you have posted above thats in my copy of dcs in wabbit 0.o but you still do the same mistake so the point is moot. Im kinda shocked this went with out noticing tho....guess the power off feature is used alot less than we thought xD _________________ Cadan: CD : My (first?!?) mod of the cadan engine for a not so demoified version of the game :HOLD
Cn2.2 Wireless Bridge : Still in the design phase.
Contest #9 Cn2.2 Ika Shmup |
|
| Back to top |
|
|
geekboy1011

Expert

Joined: 19 Jul 2009 Posts: 607
|
Posted: 04 Mar 2012 07:33:32 pm Post subject: |
|
|
Oh look, I did make a thread here, so crosspost. 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 can't understand Axe... If you have any questions pertaining to CALCnet just ask. I'll be more than willing to show you how it works if Kerm's documentation is confusing to you. There is no guarantee that this works. and it is by no means even close to done. this just has the basic API in it. Also read through the program in the wrapper folder I forgot to explain what they do and what they are. I'll make a edit later with that info, but they should be self-explanatory.
Warning, these are screen stretchers:
Flowcharts
http://geekboy.57o9.org/CALCNet/CALCnet%20Server%20Client%20Initialization%20Flow.png
http://geekboy.57o9.org/CALCNet/FrameFlowControl.png
http://geekboy.57o9.org/CALCNet/gcnaxiom%20beta.7z this is the current beta
EDIT:
Updated the download... I messed some stuff up in it _________________ Cadan: CD : My (first?!?) mod of the cadan engine for a not so demoified version of the game :HOLD
Cn2.2 Wireless Bridge : Still in the design phase.
Contest #9 Cn2.2 Ika Shmup |
|
| Back to top |
|
|
LincolnB

Advanced Member

Joined: 07 Jul 2011 Posts: 199
|
Posted: 18 Apr 2012 10:20:29 pm Post subject: |
|
|
So the current beta, the last link there...I downloaded it, but all I could find were two .8xps. I didn't really know what to do? All the Axioms I've ever used are appvars, not programs. Is there a different way to use this Axiom? _________________ -LincolnB
 |
|
| Back to top |
|
|
geekboy1011

Expert

Joined: 19 Jul 2009 Posts: 607
|
Posted: 18 Apr 2012 11:04:06 pm Post subject: |
|
|
Just put it in ram and use it like a normal axiom. Axe will convert it on the fly and turn it into an appvar.
as for the two .8xps
gcnaxe.8xp is the actual axiom
gcnlib.8xp is a wrapper that just defines some locations in ram for you. Refer to the dcs wiki for those if you have to. i hope they are kinda self explanatory.
and I apologize in advance for the lack of making peer management easy I haven't coded in a handler for clients and stuff yet you have to do all that by hand (which is why there is that wrapper >.> <.<) _________________ Cadan: CD : My (first?!?) mod of the cadan engine for a not so demoified version of the game :HOLD
Cn2.2 Wireless Bridge : Still in the design phase.
Contest #9 Cn2.2 Ika Shmup |
|
| Back to top |
|
|
LincolnB

Advanced Member

Joined: 07 Jul 2011 Posts: 199
|
Posted: 19 Apr 2012 04:36:19 pm Post subject: |
|
|
Alright, I'll try it out again and let you know how it goes. _________________ -LincolnB
 |
|
| Back to top |
|
|
geekboy1011

Expert

Joined: 19 Jul 2009 Posts: 607
|
|
| Back to top |
|
|
LincolnB

Advanced Member

Joined: 07 Jul 2011 Posts: 199
|
Posted: 21 Apr 2012 05:27:53 pm Post subject: |
|
|
The link is broken - it says google chrome can't find geekboy.57o9.org _________________ -LincolnB
 |
|
| Back to top |
|
|
KermMartian

Site Admin

Joined: 14 Mar 2005 Posts: 55882 Location: Earth, Sol, Milky Way
|
Posted: 21 Apr 2012 05:28:55 pm Post subject: |
|
|
| LincolnB wrote: | | The link is broken - it says google chrome can't find geekboy.57o9.org | Seems to work fine to me. But geekboy, you should really upload your Axiom to the Cemetech archives anyway. _________________
 |
|
| Back to top |
|
|
LincolnB

Advanced Member

Joined: 07 Jul 2011 Posts: 199
|
Posted: 21 Apr 2012 05:29:26 pm Post subject: |
|
|
that's strange, it definitely doesn't work for me.
EDIT: got a new link from geekboy through saxjax. _________________ -LincolnB
 |
|
| Back to top |
|
|
|