Author Topic: Features Wishlist  (Read 704328 times)

0 Members and 3 Guests are viewing this topic.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Features Wishlist
« Reply #585 on: May 13, 2010, 05:18:40 pm »
I imagine it is getting harder to choose the tokens.
It is, when I suggest him new features via chat, he often comes up with "I would like to add this, but I would need to figure out a good token to use :P"

Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: Features Wishlist
« Reply #586 on: May 13, 2010, 05:20:14 pm »
Can we have a sign command that would return the sign of a number.  Like this:
sign -9 = -1
sign 9 = 1
sign -9001 = -1
sign 9001 = 1
sign 0 = 0
You could use the [2nd] [sin] button.

Is it possible to easily do this in Asm, or would it be the same as ( # > 0 ) - ( # < 0 ) ?

Offline calcdude84se

  • Needs Motivation
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2272
  • Rating: +78/-13
  • Wondering where their free time went...
    • View Profile
Re: Features Wishlist
« Reply #587 on: May 13, 2010, 05:22:33 pm »
just read the high bit, which carries the sign, and then differentiate between positive and zero.
"People think computers will keep them from making mistakes. They're wrong. With computers you make mistakes faster."
-Adam Osborne
Spoiler For "PartesOS links":
I'll put it online when it does something.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Features Wishlist
« Reply #588 on: May 13, 2010, 05:33:18 pm »
I can't wait until Axe Parser supports reading/writing to individual bits

Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: Features Wishlist
« Reply #589 on: May 13, 2010, 05:37:52 pm »
DJ, you can substitute your own addresses instead of L1 - L6 if you want.  L1 - L6 are just numbers after all. :)

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Features Wishlist
« Reply #590 on: May 13, 2010, 05:53:00 pm »
Yeah I know, I checked WikiTI for most of the addresses. Not sure how it would help for binary stuff, tho :P

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 #591 on: May 13, 2010, 08:54:07 pm »
DJ, you can substitute your own addresses instead of L1 - L6 if you want.  L1 - L6 are just numbers after all. :)

Bits not bytes ;) Yeah I cant wait for this either :) It will make a few things quite usefull.

Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: Features Wishlist
« Reply #592 on: May 13, 2010, 09:00:57 pm »
DJ, you can substitute your own addresses instead of L1 - L6 if you want.  L1 - L6 are just numbers after all. :)

Bits not bytes ;) Yeah I cant wait for this either :) It will make a few things quite usefull.
Gah, my bad. :)  Now that I've read 'bits', I really want this to happen too.  It'll be fun to manipulate stuff in binary! ;D

Technically, you could use calculations to do this with the 'pixel' commands, but it would be a lot of useless calculations. ;D
« Last Edit: May 13, 2010, 09:01:14 pm by ztrumpet »

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 #593 on: May 13, 2010, 09:07:00 pm »
You can also do it with some loops or lookuptables coupled with AND and OR commands, but its a hassle :P

_player1537

  • Guest
Re: Features Wishlist
« Reply #594 on: May 13, 2010, 09:45:43 pm »
I use 'and 1' or any other number to do this atm.  iirc there is an asm command like 'set 4,(1337)' or something like that.

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 #595 on: May 14, 2010, 12:49:09 am »
Just curious, would it be useful to set and get exact bits in the 2 byte number?  Like "get the 11th bit" and "set the 2nd bit" or is it more useful to have the Nth bit with N being variable?  Unfortunately, these routines with variable bits are kinda big.  Big enough where they wouldn't be inline like the constant bit checking and I would make it a subroutine to save space.

I might be able to do both, but I'll have to come up with some clever syntax.

By the way, I just coined a new term: "Axe Hax" for clever exploits of Axe commands. :)
« Last Edit: May 14, 2010, 12:50:04 am by Quigibo »
___Axe_Parser___
Today the calculator, tomorrow the world!

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Features Wishlist
« Reply #596 on: May 14, 2010, 01:07:58 am »
mhmm not sure what you mean x.x sorry :(

Offline calc84maniac

  • eZ80 Guru
  • Coder Of Tomorrow
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2912
  • Rating: +471/-17
    • View Profile
    • TI-Boy CE
Re: Features Wishlist
« Reply #597 on: May 14, 2010, 01:44:10 am »
You could optimize the AND/OR that will reset/set a single bit to a simple 2-byte RES/SET opcode. That way you won't even need extra tokens for constant bit commands.
"Most people ask, 'What does a thing do?' Hackers ask, 'What can I make it do?'" - Pablos Holman

_player1537

  • Guest
Re: Features Wishlist
« Reply #598 on: May 14, 2010, 04:56:12 pm »
hmm, could this even be remotly possible:
having a way to change the macro ourselves, ie I like using the "And/Or/Xor" commands bitwise.  I personally always use them this way and use them a lot like this.  If you compiled the new phoenix/raven game I'm making with the new version it would completly fail when running it. 

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 #599 on: May 14, 2010, 07:44:45 pm »
Those commands are still there, but they've just changed syntax.  It makes the code more readable too because now you're using and/or/xor as single character operators just like addition, subtraction, multiplication, and the others.
___Axe_Parser___
Today the calculator, tomorrow the world!