Omnimaga

Calculator Community => Other Calculators => Topic started by: ztrumpet on October 28, 2010, 05:44:11 pm

Title: Key Group Check Program
Post by: ztrumpet on October 28, 2010, 05:44:11 pm
Here's a program I threw together in Axe for checking key groups.  It's used to check various combinations of keys to make sure they don't interfere with each other.  For example, press all of the arrows and then Graph... ;D

Topic to reference: http://ourl.ca/7642

Enjoy, and source is included.  :D

Also, you may get an Err: Break on exit depending on the shell (or lack of) that you use since [On] is used to exit.  It's compiled for Ion, so it will work from all shells. ^-^

Thanks:
Quigibo - Axe Parser
Calc84maniac - [On] routine
Title: Re: Key Group Check Program
Post by: DJ Omnimaga on October 28, 2010, 05:46:09 pm
Nice, that might come handy to check if certain key combinations are possible or not
Title: Re: Key Group Check Program
Post by: Happybobjr on October 28, 2010, 05:46:47 pm
amazing.  When i saw the title i just expected a noob showing off.  But this is great.

(i wish i had this for the etch-a-sketch
Title: Re: Key Group Check Program
Post by: yunhua98 on October 28, 2010, 05:46:48 pm
Nice!  thias will be really useful for all Maxcoderz!
Quigibo should really include this in the tools foder for Axe.  ;)
Title: Re: Key Group Check Program
Post by: DJ Omnimaga on October 28, 2010, 08:37:40 pm
Lol I totally didn't thought about AxeCoderz. Now if MaxCoderz did not exist and if we seeked for a new name and only did Axe programming, we could almost become AxeCoderz ;D
Title: Re: Key Group Check Program
Post by: calcdude84se on October 30, 2010, 05:58:54 pm
I wrote a really crude version of this at one point, but yours has boxes! :P
Nice job. :)
Title: Re: Key Group Check Program
Post by: shmibs on October 30, 2010, 06:39:25 pm
I wrote a really crude version of this at one point, but yours has boxes! :P
Nice job. :)
yes, the graphics are very helpful. thanks a lot, ztrumpet!
Lol I totally didn't thought about AxeCoderz. Now if MaxCoderz did not exist and if we seeked for a new name and only did Axe programming, we could almost become AxeCoderz ;D
or maxcoderz could make an axecoderz subforum :P
Title: Re: Key Group Check Program
Post by: meishe91 on October 30, 2010, 07:37:34 pm
This looks quite cool, but what does it do exactly?
Title: Re: Key Group Check Program
Post by: shmibs on October 30, 2010, 09:37:56 pm
well, each key on the calc keyboard has a bit assigned to it which is set when pressed and reset when not pressed. however, it doesnt really have it's own because(i guess?) it would take too long for the processor to go through and check a bit for every single key every time it want's to know what keys are pressed down and so the keys are instead broken into several keygroups. the processor then has to indicate which keygroup it wants to check and then which bit it want's to check. for some reason, certain combinations of keys will return the value of others when they are pressed because of this? i would have to read up on this again as the last time i did was over a year ago. thepenguin or any of the other asm programmers could actually explain it.
the purpose of this program is to display graphically what keys the processor is reading as being pressed down, which can then be compared with what keys are actually being pressed to ensure that a certain key combo that may be used in your game wont trigger another key that does something completely different.
Title: Re: Key Group Check Program
Post by: yunhua98 on October 30, 2010, 10:05:51 pm
We should have a usergroup called AxeCoderz for people who are epic at Axe.  :P
Title: Re: Key Group Check Program
Post by: Happybobjr on October 30, 2010, 11:58:04 pm
or we could have a one big collection of programs and screenies, so if you don't know the name or existence of a prog. it can be found quite nicely.
Title: Re: Key Group Check Program
Post by: Deep Toaster on October 31, 2010, 12:35:37 am
Whoa, looks really nice! Especially the key layout thing.
Title: Re: Key Group Check Program
Post by: meishe91 on October 31, 2010, 01:25:16 am
well, each key on the calc keyboard has a bit assigned to it which is set when pressed and reset when not pressed. however, it doesnt really have it's own because(i guess?) it would take too long for the processor to go through and check a bit for every single key every time it want's to know what keys are pressed down and so the keys are instead broken into several keygroups. the processor then has to indicate which keygroup it wants to check and then which bit it want's to check. for some reason, certain combinations of keys will return the value of others when they are pressed because of this? i would have to read up on this again as the last time i did was over a year ago. thepenguin or any of the other asm programmers could actually explain it.
the purpose of this program is to display graphically what keys the processor is reading as being pressed down, which can then be compared with what keys are actually being pressed to ensure that a certain key combo that may be used in your game wont trigger another key that does something completely different.

Ah ok, gotcha. Guess I just don't really use Axe/assembly enough to really run into this issue.