• Features Wishlist 5 1
Currently:  

Author Topic: Features Wishlist  (Read 694451 times)

0 Members and 4 Guests are viewing this topic.

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: Features Wishlist
« Reply #2700 on: November 05, 2011, 03:08:41 pm »
What are the commands for the bit set/reset/accessing indiviual bits?
also you have 444 respect
« Last Edit: November 05, 2011, 03:08:57 pm by aeTIos »
I'm not a nerd but I pretend:

Offline Keoni29

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2466
  • Rating: +291/-16
    • View Profile
    • My electronics projects at 8times8
Re: Features Wishlist
« Reply #2701 on: November 05, 2011, 03:15:44 pm »
are bit commands planned? if not I want to request. (since that will give a HUGE size optimization)

Wait did you mean bit shifting or setting/resetting/accessing individual bits?  Because shifting can be accomplished by simply multiplying or dividing by 2, and setting/resetting/accessing individual bits has already been implemented.
Since which version?
If you like my work: why not give me an internet?








Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: Features Wishlist
« Reply #2702 on: November 05, 2011, 03:29:50 pm »
But to set a bit (let's say the first one for example), don't we just need to or with 10000000 ?
And the same to reset but with xor ?
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: Features Wishlist
« Reply #2703 on: November 05, 2011, 03:31:16 pm »
:o that could indeed be true
and to get a bit and with the wanted one
thx!!
I'm not a nerd but I pretend:

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Features Wishlist
« Reply #2704 on: November 05, 2011, 03:53:38 pm »
But to set a bit (let's say the first one for example), don't we just need to or with 10000000 ?
And the same to reset but with xor ?

You would use AND to reset bits, XOR is used to toggle a bit

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: Features Wishlist
« Reply #2705 on: November 05, 2011, 03:55:49 pm »
But to set a bit (let's say the first one for example), don't we just need to or with 10000000 ?
And the same to reset but with xor ?

You would use AND to reset bits, XOR is used to toggle a bit
D: epic fail
I posted without thinking a lot but I knew something like that could work ;D

EDIT: I gave you a +1, you no longer have +444 D: Should I remove it ?
« Last Edit: November 05, 2011, 03:56:38 pm by Hayleia »
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Features Wishlist
« Reply #2706 on: November 05, 2011, 04:04:02 pm »
Do what you please, it's your own respect you are giving :)

Offline Quigibo

  • The Executioner
  • CoT Emeritus
  • LV11 Super Veteran (Next: 3000)
  • *
  • Posts: 2031
  • Rating: +1075/-24
  • I wish real life had a "Save" and "Load" button...
    • View Profile
Re: Features Wishlist
« Reply #2707 on: November 05, 2011, 07:35:09 pm »
Don't forget the 'e' operator.  It accesses the Nth bit of a number.  Its been around for a long time now...
___Axe_Parser___
Today the calculator, tomorrow the world!

Offline Keoni29

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2466
  • Rating: +291/-16
    • View Profile
    • My electronics projects at 8times8
Re: Features Wishlist
« Reply #2708 on: November 06, 2011, 04:15:37 am »
Don't forget the 'e' operator.  It accesses the Nth bit of a number.  Its been around for a long time now...
Syntax?
If you like my work: why not give me an internet?








Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Features Wishlist
« Reply #2709 on: November 06, 2011, 04:21:07 am »
Don't forget the 'e' operator.  It accesses the Nth bit of a number.  Its been around for a long time now...
Syntax?

It's all in the commands index :) You should check it out, it has all the Axe commands ever, you may find some you never new existed ^^.  AeB accesses the Bth bit of A

Offline Keoni29

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2466
  • Rating: +291/-16
    • View Profile
    • My electronics projects at 8times8
Re: Features Wishlist
« Reply #2710 on: November 06, 2011, 04:25:51 am »
Found it. But all variables are 16 bits :( When I have this number:
10101011 00010110
Does AeB return the B-th bit from the 1st or the 2nd nibble from the left?
If you like my work: why not give me an internet?








Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Features Wishlist
« Reply #2711 on: November 06, 2011, 04:31:48 am »
It would use the low byte (which i don't remember which one it is, you should test it out)

Offline Keoni29

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2466
  • Rating: +291/-16
    • View Profile
    • My electronics projects at 8times8
Re: Features Wishlist
« Reply #2712 on: November 06, 2011, 09:08:32 am »
I checked the command list. Ae0 gives the highest bit of an 8-bit number. In axe when saving 16bit numbers in an array you have to define the low byte first. So that means that axe uses the low byte first. When a command needs an 8bit number it will simply take the low byte of the variable. Is this theory correct?
If you like my work: why not give me an internet?








Offline Quigibo

  • The Executioner
  • CoT Emeritus
  • LV11 Super Veteran (Next: 3000)
  • *
  • Posts: 2031
  • Rating: +1075/-24
  • I wish real life had a "Save" and "Load" button...
    • View Profile
Re: Features Wishlist
« Reply #2713 on: November 06, 2011, 02:21:48 pm »
Yes.  If you're using 'e' it will ignore the high byte of a 16-bit variable.  However, if you use 'ee' you can pick from the entire 16 bits.
« Last Edit: November 06, 2011, 02:22:10 pm by Quigibo »
___Axe_Parser___
Today the calculator, tomorrow the world!

Offline LincolnB

  • Check It Out Now
  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1115
  • Rating: +125/-4
  • By Hackers For Hackers
    • View Profile
Re: Features Wishlist
« Reply #2714 on: November 06, 2011, 08:31:56 pm »
can you set bits with the e operator? Like, can you say, 1->Ae4
Completed Projects:
   >> Spacky Emprise   >> Spacky 2 - Beta   >> Fantastic Sam
   >> An Exercise In Futility   >> GeoCore

My Current Projects:

Projects in Development:
In Medias Res - Contest Entry

Talk to me if you need help with Axe coding.


Spoiler For Bragging Rights:
Not much yet, hopefully this section will grow soon with time (and more contests)