Author Topic: Terminal 4.4.1  (Read 10787 times)

0 Members and 2 Guests are viewing this topic.

Offline ClrDraw

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 627
  • Rating: +61/-2
    • View Profile
    • GitHub
Re: Terminal 4.4.1
« Reply #15 on: October 29, 2013, 06:04:09 pm »
Thanks  ;D
Visit my GitHub for all my TI programs as well as other projects.
Also check out my website.

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: Terminal 4.4.1
« Reply #16 on: October 29, 2013, 10:47:24 pm »
Free archive is a bit more difficult to assess. I've never actually written a decent routine but it would require looping through archive, noting variables marked for deletion, and then writing a routine to display 23-bit numbers

Offline ClrDraw

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 627
  • Rating: +61/-2
    • View Profile
    • GitHub
Re: Terminal 4.4.1
« Reply #17 on: October 30, 2013, 11:42:05 am »
 :-\ that's not worth it, that would take up to much space in my code and slow it down... Thanks though.
Visit my GitHub for all my TI programs as well as other projects.
Also check out my website.

Offline Runer112

  • Moderator
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2289
  • Rating: +639/-31
    • View Profile
Re: Terminal 4.4.1
« Reply #18 on: October 30, 2013, 12:38:09 pm »
There's a B_CALL that should be able to do most of the heavy lifting for you: B_CALL(_ArcChk). It returns the amount of free archive space, as would be reported in the memory management menu, as a big-endian 32-bit integer at memory location $839F. To be able to display this, you then need a routine to convert this value into a string.

Someone asked pretty much this same question a couple years ago. I gave an assembly solution for their question here, which has code to get both the amount of free archive space and the amount of total archive space as printable strings. If you'd like me to convert it into something usable in Axe, I can do that easily enough.
« Last Edit: October 30, 2013, 12:39:28 pm by Runer112 »

Offline ClrDraw

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 627
  • Rating: +61/-2
    • View Profile
    • GitHub
Re: Terminal 4.4.1
« Reply #19 on: October 30, 2013, 05:41:26 pm »
Could you please? I only know Axe.
Visit my GitHub for all my TI programs as well as other projects.
Also check out my website.

Offline Matrefeytontias

  • Axe roxxor (kinda)
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1982
  • Rating: +310/-12
  • Axe roxxor
    • View Profile
    • RMV Pixel Engineers
Re: Terminal 4.4.1
« Reply #20 on: October 31, 2013, 06:12:31 am »
I tried it, it looks very cool :D

But I can't seem to be able to do anything with my programs ... it always say "Prgm not found" :


Offline ClrDraw

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 627
  • Rating: +61/-2
    • View Profile
    • GitHub
Re: Terminal 4.4.1
« Reply #21 on: October 31, 2013, 11:49:22 am »
My mistake, I must've made the readme confusing. What you must do is type "SHELL" and press enter. Type the name of your program, "FACES", and press enter. Then you can type "RUN", "LOCK", "HIDE", "ARCHIVE", etc  :) sorry again for the confusion, I fixed the readme.
« Last Edit: October 31, 2013, 12:00:06 pm by ClrDraw »
Visit my GitHub for all my TI programs as well as other projects.
Also check out my website.

Offline Matrefeytontias

  • Axe roxxor (kinda)
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1982
  • Rating: +310/-12
  • Axe roxxor
    • View Profile
    • RMV Pixel Engineers
Re: Terminal 4.4.1
« Reply #22 on: October 31, 2013, 03:06:12 pm »
Okay it's working now, thanks for the precision :)

Offline Runer112

  • Moderator
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2289
  • Rating: +639/-31
    • View Profile
Re: Terminal 4.4.1
« Reply #23 on: October 31, 2013, 04:11:56 pm »
I went a little bit overkill, but I slightly optimized and turned my old free/total archive commands into a mini Axe library. It's fairly straightforward to use, consisting of two commands and one constant definition:

  • TotalArc(): Returns a string (no padding) representing the total number of bytes of user archive space for the host calculator model.
  • FreeArc(): Returns a string (no padding) representing the free number of bytes of user archive space.
  • °Arc: After either of the above calls, this points to a string representing the same number, but padded with spaces on the left to always be 7 characters wide.

The library is attached. Just send it to your calculator (preferable archive so you don't lose it in a RAM clear) and include it in your program anywhere as prgmARCLIB.
« Last Edit: October 31, 2013, 07:46:38 pm by Runer112 »

Offline ClrDraw

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 627
  • Rating: +61/-2
    • View Profile
    • GitHub
Re: Terminal 4.4.1
« Reply #24 on: October 31, 2013, 06:10:21 pm »
Any time Matrefeytontias. And Runner, thanks a lot, I'm going to use that in AlphaCS and Terminal. I'll have a new version with your code soon and put you in info  :) +1

EDIT: added the new version next to the first.
« Last Edit: November 02, 2013, 04:11:35 pm by ClrDraw »
Visit my GitHub for all my TI programs as well as other projects.
Also check out my website.

Offline ClrDraw

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 627
  • Rating: +61/-2
    • View Profile
    • GitHub
Re: Terminal 4.4.1
« Reply #25 on: November 03, 2013, 11:01:18 pm »
http://www.omnimaga.org/index.php?action=downloads;sa=view;down=866

Added a modified/updated version the download section, it's still being approved.
Visit my GitHub for all my TI programs as well as other projects.
Also check out my website.

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: Terminal 4.4.1
« Reply #26 on: November 04, 2013, 08:30:18 am »
I think this is actually very cool and I have been checking Omni waiting for updates to this :thumbsup:


If there are certain programs that require a shell to be run, an easy way to do this is check if DoorsCS7 is on the calc and have it open the file. It felt kind of like cheating to me when I did that, but it saves a lot of work. of course, you would still have to handle the case of DCS7 not being on the calc :P

Offline ClrDraw

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 627
  • Rating: +61/-2
    • View Profile
    • GitHub
Re: Terminal 4.4.1
« Reply #27 on: November 04, 2013, 11:05:48 am »
Quote
I think this is actually very cool and I have been checking Omni waiting for updates to this
  :) Just hang in there for two more weeks, I've got a crazy shell coming out soon. This was a warm-up!

Quote
If there are certain programs that require a shell to be run, an easy way to do this is check if DoorsCS7 is on the calc and have it open the file. It felt kind of like cheating to me when I did that, but it saves a lot of work. of course, you would still have to handle the case of DCS7 not being on the calc
That's a really good idea... IDK though, I want my shell to work as a replacement for DoorsCS and Mirage. Do you think learning ASM is worth it?
Visit my GitHub for all my TI programs as well as other projects.
Also check out my website.

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: Terminal 4.4.1
« Reply #28 on: November 04, 2013, 03:25:12 pm »
Quote
If there are certain programs that require a shell to be run, an easy way to do this is check if DoorsCS7 is on the calc and have it open the file. It felt kind of like cheating to me when I did that, but it saves a lot of work. of course, you would still have to handle the case of DCS7 not being on the calc
That's a really good idea... IDK though, I want my shell to work as a replacement for DoorsCS and Mirage. Do you think learning ASM is worth it?
If you want to replace those shells, you will end up learning at least a little assembly. MirageOS, ION, DoorsCS7, and others like them not only work as a shell, but they also provide subroutines for assembly programs to use. For example, any MOS programs relying on the ionFastCopy routine (or whatever it is called) will need to have the appropriate jump table at the appropriate address so that the program can function.


Offline ClrDraw

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 627
  • Rating: +61/-2
    • View Profile
    • GitHub
Re: Terminal 4.4.1
« Reply #29 on: November 04, 2013, 04:43:01 pm »
I'm not gonna go that far, at least not with this version. Maybe in a future version after I learn some ASM I'll look into that though  :)

EDIT: For anybody interested in the new and improved version, I finally got the download link to work! The new version has shorter commands so general use is quicker, plus I optimized the whole thing and trimmed out a ton of unnecessary code. Also used Runner112's RAM/ROM library and can display ALL programs and appvariables (prgm! and prgm# included, along with hidden programs and DoorsCS folders).

(once it becomes approved)
http://www.omnimaga.org/index.php?action=downloads;sa=view;down=866
« Last Edit: November 07, 2013, 08:10:28 pm by ClrDraw »
Visit my GitHub for all my TI programs as well as other projects.
Also check out my website.