• Features Wishlist 5 1
Currently:  

Author Topic: Features Wishlist  (Read 543465 times)

0 Members and 1 Guest are viewing this topic.

Offline Raylin

  • Godslayer
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1392
  • Rating: +83/-25
  • I am a certifiable squirrel ninja.
    • View Profile
    • Ray M. Perry
Re: Features Wishlist
« Reply #360 on: April 05, 2010, 10:54:38 pm »
Oh yeah.
Brain relapse.

Edited.
Bug me about my book.

Sarah: TI-83 Plus Silver Edition [OS 1.19]
Cassie: TI-86 [OS 1.XX]
Elizabeth: TI-81 [OS 1.XX]
Jehuty: TI-83 Plus Silver Edition [OS 1.19]
Tesla: CASIO Prizm







Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55936
  • Rating: +3153/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • DJ Omnimaga Music
Re: Features Wishlist
« Reply #361 on: April 05, 2010, 11:08:49 pm »
would value be a specific byte in the appvar?

Offline Raylin

  • Godslayer
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1392
  • Rating: +83/-25
  • I am a certifiable squirrel ninja.
    • View Profile
    • Ray M. Perry
Re: Features Wishlist
« Reply #362 on: April 05, 2010, 11:30:23 pm »
No.
It would be a value and Axe would search the AppVar for that value.
Bug me about my book.

Sarah: TI-83 Plus Silver Edition [OS 1.19]
Cassie: TI-86 [OS 1.XX]
Elizabeth: TI-81 [OS 1.XX]
Jehuty: TI-83 Plus Silver Edition [OS 1.19]
Tesla: CASIO Prizm







Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55936
  • Rating: +3153/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • DJ Omnimaga Music
Re: Features Wishlist
« Reply #363 on: April 05, 2010, 11:43:01 pm »
Mhmm...

Could you provide an usage example of what it would do, including Input and Outputted results as examples?

Offline Raylin

  • Godslayer
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1392
  • Rating: +83/-25
  • I am a certifiable squirrel ninja.
    • View Profile
    • Ray M. Perry
Re: Features Wishlist
« Reply #364 on: April 05, 2010, 11:47:25 pm »
Code: [Select]
:"MYVAR->Str1
:"Saved.->Str2
:Select(Str1)
:GetCalc(50)->A
:45->{A+24}
:If inString(Str1,45)
:Disp Str2,i
:End

Something like that.

In this example, we put in two things. We told Axe to look in MYVAR (Str1) for the value 45.
It returned a 1 and as a result, it threw back a "Saved." message.
« Last Edit: April 05, 2010, 11:51:14 pm by Raylin »
Bug me about my book.

Sarah: TI-83 Plus Silver Edition [OS 1.19]
Cassie: TI-86 [OS 1.XX]
Elizabeth: TI-81 [OS 1.XX]
Jehuty: TI-83 Plus Silver Edition [OS 1.19]
Tesla: CASIO Prizm







Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55936
  • Rating: +3153/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • DJ Omnimaga Music
Re: Features Wishlist
« Reply #365 on: April 05, 2010, 11:47:51 pm »
including Input and Outputted results as examples?
« Last Edit: April 05, 2010, 11:55:49 pm by DJ Omnimaga »

Offline Raylin

  • Godslayer
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1392
  • Rating: +83/-25
  • I am a certifiable squirrel ninja.
    • View Profile
    • Ray M. Perry
Re: Features Wishlist
« Reply #366 on: April 05, 2010, 11:51:22 pm »
EDITED.
Bug me about my book.

Sarah: TI-83 Plus Silver Edition [OS 1.19]
Cassie: TI-86 [OS 1.XX]
Elizabeth: TI-81 [OS 1.XX]
Jehuty: TI-83 Plus Silver Edition [OS 1.19]
Tesla: CASIO Prizm







Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55936
  • Rating: +3153/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • DJ Omnimaga Music
Re: Features Wishlist
« Reply #367 on: April 05, 2010, 11:57:22 pm »
i still don't get it x.x sorry

Nevermind, then. It may just be way too low-level for me.

I think I will just stick to the functions from Axe 0.0.5 and a few of the 1.x ones and that's about it because the last time I checked the doc I forgot half of the commands :/

Offline Silver Shadow

  • Beta Tester
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 817
  • Rating: +27/-7
    • View Profile
Re: Features Wishlist
« Reply #368 on: April 06, 2010, 03:11:15 am »
That's why should always have a copy of the doc at hand when programming. I too find it difficult to remember all of the commands and their syntax. But the more you program, the more chances you have of remembering them.
Former Coder of Tomorrow


Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55936
  • Rating: +3153/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • DJ Omnimaga Music
Re: Features Wishlist
« Reply #369 on: April 06, 2010, 03:14:22 am »
Well, I have it on my PC all the time and an older copy, but I stopped looking at it for a week and forgot a lot of commands. I had to ask Quigibo (via chat) to remind me what some do in more details x.x

I guess I'll really need to get coding again

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 #370 on: April 06, 2010, 04:08:31 am »
I was planning to add an instr() command, but a little more general than what you are referring to.  It would be like this:

instr(START,BYTE<,SIZE>)

The last option is optional.  You give it a pointer, and it searches for the byte until it finds it and then returns the pointer to that byte, or it returns zero if not found.  That way, its not just limited to application variables, you can use it anywhere.

Its pretty easy to add, but I haven't yet because honestly, it really isn't as useful as it sounds.  There is a regular assembly instruction that does exactly this called "cpir" but I've never used it or needed to use it ever for anything.  I've almost never seen it used in other programs either.  It would only be needed for very specific applications, and even then its easy to write a subroutine yourself with existing commands.  But yes, I will support it eventually, but its in the back of my list.
___Axe_Parser___
Today the calculator, tomorrow the world!

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55936
  • Rating: +3153/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • DJ Omnimaga Music
Re: Features Wishlist
« Reply #371 on: April 06, 2010, 04:11:02 am »
Just focus on the more essential commands for now I think ^^ (and bug fixes if any)

In such command, though, how would you specify (in this syntax) if you want to point to a byte in an appvar instead of inside the program?

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 #372 on: April 06, 2010, 04:15:00 am »
In such command, though, how would you specify (in this syntax) if you want to point to a byte in an appvar instead of inside the program?

Select(Str1)
getCalc()->A
instr(A,'Z',100)

This would search for the character 'Z' in the first 100 bytes of the appvar.
___Axe_Parser___
Today the calculator, tomorrow the world!

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55936
  • Rating: +3153/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • DJ Omnimaga Music
Re: Features Wishlist
« Reply #373 on: April 06, 2010, 04:19:24 am »
About getcalc() it returns what was selected with Select(Str1), right, then store it into A, then search from memory location A through the next 100 bytes, then return 1 if "Z" is found?

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 #374 on: April 06, 2010, 04:25:24 am »
Yes, but just like the calc's instr(), it doesn't just return 1, it returns the location of the found byte if it is found (a pointer) because this is much more useful.
___Axe_Parser___
Today the calculator, tomorrow the world!