Author Topic: Finding / listing programs  (Read 25331 times)

0 Members and 2 Guests are viewing this topic.

Offline Binder News

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 785
  • Rating: +46/-3
  • Zombie of Tomorrow
    • View Profile
Re: Finding / listing programs
« Reply #60 on: October 27, 2010, 07:58:08 pm »
I shall post a link there to this topic so that the progress of this idea can easily be viewed.
Spoiler For userbars:







Hacker-in-training!   Z80 Assembly Programmer     Axe Programmer
C++ H4X0R             Java Coder                           I <3 Python!

Perdidisti ludum     Cerebrum non habes

"We are humans first, no matter what."
"Fame is a vapor, popularity an accident, and riches take wings. Only one thing endures, and that is character."
Spoiler For Test Results:





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: Finding / listing programs
« Reply #61 on: October 27, 2010, 11:27:44 pm »
On an-off-topic note, is the Hexpic program in your signature an updated version of the one that comes with Axe Parser? (It was written in TI-BASIC)

Offline Binder News

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 785
  • Rating: +46/-3
  • Zombie of Tomorrow
    • View Profile
Re: Finding / listing programs
« Reply #62 on: October 28, 2010, 09:27:24 am »
Yes it is. It is written in Axe, and so is much faster. WARNING: If it cannot access Str1, it can crash. I have made some updates, but just haven't uploaded them yet.
Spoiler For userbars:







Hacker-in-training!   Z80 Assembly Programmer     Axe Programmer
C++ H4X0R             Java Coder                           I <3 Python!

Perdidisti ludum     Cerebrum non habes

"We are humans first, no matter what."
"Fame is a vapor, popularity an accident, and riches take wings. Only one thing endures, and that is character."
Spoiler For Test Results:





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: Finding / listing programs
« Reply #63 on: October 28, 2010, 06:30:02 pm »
Ah cool, maybe it could eventually be included with Axe?

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: Finding / listing programs
« Reply #64 on: October 29, 2010, 12:35:16 am »
I don't like using the alphabetical sorting BCALLs.  I used to use them in early versions of Axe and it made the list populate extremely slowly when there are a lot of programs on the calculator becasue it has to sort the entire VAT up to the n-th item for each call you make.  What Axe does now is sort the entire VAT only once when the program starts and then pass through the list sequentially.  The actual code to move to the next entry is about the same size as the BCALL anyway so I might as well just go with a faster solution.

After thinking about it for a while, I realized the entire scanner could be a single routine:

Code: [Select]
Vat(P)

Takes one argument:
If the argument is zero, it returns a pointer to the first entry in the vat.
If the argument is a pointer, returns the next vat entry after the pointer.
If there are no more entries after the pointer, returns 0 (end of VAT).

Not sure if a command like this would actually be that useful though, its still confusing to read the entry since they have backwards names and a specific order of the byte fields.  I'd rather not have to add 5 other commands to read all the fields either, it seems more like something a library routine should do instead of a built-in feature.
___Axe_Parser___
Today the calculator, tomorrow the world!

Offline Binder News

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 785
  • Rating: +46/-3
  • Zombie of Tomorrow
    • View Profile
Re: Finding / listing programs
« Reply #65 on: October 29, 2010, 02:07:06 pm »
That's why I said you should use the bcall. If someone really wants to use it, they can. Otherwise, they don't. I was fooling around a little with ASM last night at 11pm and I think it wouldn't be too hard to do. (I just don't know how yet). Anyways, Axioms are temporarily disabled, remember?

Finally, you are absolutely welcome to include my version of Hexpic with Axe. (I would like some credit, but you don't have to). The current version (which I will upload later) has full inversion and horizontal and vertical shifts, as well as the other stuff. It does not let you load, but oh, well.

EDIT: New Hexpic uploaded. See my signature.
« Last Edit: October 29, 2010, 05:02:38 pm by Binder News »
Spoiler For userbars:







Hacker-in-training!   Z80 Assembly Programmer     Axe Programmer
C++ H4X0R             Java Coder                           I <3 Python!

Perdidisti ludum     Cerebrum non habes

"We are humans first, no matter what."
"Fame is a vapor, popularity an accident, and riches take wings. Only one thing endures, and that is character."
Spoiler For Test Results:





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: Finding / listing programs
« Reply #66 on: October 29, 2010, 08:46:26 pm »
Well, it's Quigibo application, so he is free to add whatever function he wants, really. If other people also want this added, maybe he will eventually add it or someone will write an ASM hex code to use it in the Routines topic.

I will try your hexpic later.

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: Finding / listing programs
« Reply #67 on: November 30, 2010, 01:15:22 pm »
It would be something very similar to this, I haven't tested it yet.  Maybe I'll test it and then edit this post with an example that uses this.

<snip>


Quigibo, are you sure that {E9830} is the start of the VAT? That routine is returning all of the correct programs, but also a few programs that don't exist such as #, %FLDn, and %FLDu.
« Last Edit: November 30, 2010, 01:18:51 pm by Qwerty.55 »
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

Offline JosJuice

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1344
  • Rating: +66/-14
    • View Profile
Re: Finding / listing programs
« Reply #68 on: November 30, 2010, 01:19:54 pm »
It would be something very similar to this, I haven't tested it yet.  Maybe I'll test it and then edit this post with an example that uses this.

<snip>


Quigibo, are you sure that {E9830} is the start of the VAT? That routine is returning all of the correct programs, but also a few programs that don't exist such as #, %FLDn, and %FLDu.

Those programs are stored as actual programs in the VAT, but a normal user can't see them.

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: Finding / listing programs
« Reply #69 on: November 30, 2010, 01:20:38 pm »
What are they, then? OS programs?
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

Offline calc84maniac

  • eZ80 Guru
  • Coder Of Tomorrow
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2912
  • Rating: +471/-17
    • View Profile
    • TI-Boy CE
Re: Finding / listing programs
« Reply #70 on: November 30, 2010, 01:32:48 pm »
# and ! are the last entry and the current entry, respectively. %FLD programs are DoorsCS folders.
"Most people ask, 'What does a thing do?' Hackers ask, 'What can I make it do?'" - Pablos Holman

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: Finding / listing programs
« Reply #71 on: November 30, 2010, 01:38:48 pm »
what is this for in the example:

Code: [Select]
Disp i
is it the [2nd][.] 'i'?
I'm not a nerd but I pretend:

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: Finding / listing programs
« Reply #72 on: November 30, 2010, 01:41:15 pm »
# and ! are the last entry and the current entry, respectively. %FLD programs are DoorsCS folders.

Oh...
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

Offline calc84maniac

  • eZ80 Guru
  • Coder Of Tomorrow
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2912
  • Rating: +471/-17
    • View Profile
    • TI-Boy CE
Re: Finding / listing programs
« Reply #73 on: November 30, 2010, 01:41:19 pm »
what is this for in the example:

Code: [Select]
Disp i
is it the [2nd][.] 'i'?

Yep, it displays a newline
"Most people ask, 'What does a thing do?' Hackers ask, 'What can I make it do?'" - Pablos Holman

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: Finding / listing programs
« Reply #74 on: November 30, 2010, 01:42:08 pm »
ah, okay
I knew it displayed a newline, though, but i didnt know what token it was
« Last Edit: November 30, 2010, 01:42:51 pm by aeTIos »
I'm not a nerd but I pretend: