Author Topic: Axe Terminal  (Read 6998 times)

0 Members and 1 Guest are viewing this topic.

Offline DJ Omnimaga

  • Former TI programmer
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55833
  • Rating: +3151/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • DJ Omnimaga Music
Re: Axe Terminal
« Reply #30 on: January 06, 2011, 03:38:45 am »
Cool to hear :D
In case you are wondering where I went, I left Omni back in 2015 to form CodeWalrus due to various reasons explained back then, but I stopped calc dev in 2016 and am now mostly active on the CW Discord server at https://discord.gg/cuZcfcF



Official Website |T-Shirt store | Reverbnation | Facebook | Youtube | Twitter | Spotify

Offline Binder News

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 785
  • Rating: +46/-3
  • Zombie of Tomorrow
    • View Profile
Re: Axe Terminal
« Reply #31 on: January 06, 2011, 06:46:01 am »
Very cool. I once thought about making a shell that would support the Axe commands. Like ion, but with Axe. However, I never started it.
* Binder News clicks "notify" on this topic
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:





SirCmpwn

  • Guest
Re: Axe Terminal
« Reply #32 on: January 06, 2011, 05:23:01 pm »
Hey, I tried using bcall ExecProgram, but it did not work.  It didn't crash, but it didn't launch the program at all.  I tried it as an app and as a nostub program, with similar results each time.  Any ideas as to why?

Offline calcdude84se

  • Needs Motivation
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2272
  • Rating: +78/-13
  • Wondering where their free time went...
    • View Profile
Re: Axe Terminal
« Reply #33 on: January 06, 2011, 05:44:03 pm »
Two questions: did you use it like WikiTI documents it? and is the program you are trying to execute an unarchived ASM program?
« Last Edit: January 06, 2011, 08:03:38 pm by calcdude84se »
"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.

SirCmpwn

  • Guest
Re: Axe Terminal
« Reply #34 on: January 06, 2011, 06:13:33 pm »
I got it working, and subsequently got "EXEC PRGMNAME" working with it.  I'll be working on a better way to execute programs from Archive, but it works for RAM at the moment.

Offline calcdude84se

  • Needs Motivation
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2272
  • Rating: +78/-13
  • Wondering where their free time went...
    • View Profile
Re: Axe Terminal
« Reply #35 on: January 06, 2011, 08:05:01 pm »
Saw that you fixed it on IRC too. :D
How are you currently running from Archive? Copying to RAM will be easy enough, it seems.
"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.

SirCmpwn

  • Guest
Re: Axe Terminal
« Reply #36 on: January 06, 2011, 09:45:45 pm »
I'm not handling it at all.  If the program in question is archived, it gives a "File Not Found!" error.  I'll be creating a temporary program in RAM and copying the program from archive to the temp program, then executing the temp program.  I might add a switch to the exec statement, where you can enable writeback:
EXEC -W PHOENIX

Offline DJ Omnimaga

  • Former TI programmer
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55833
  • Rating: +3151/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • DJ Omnimaga Music
Re: Axe Terminal
« Reply #37 on: January 07, 2011, 06:37:01 pm »
Sounds cool, since a lot of people may want to keep their entire calc content archived. (Especially Mario, which crashes every picosecond)
In case you are wondering where I went, I left Omni back in 2015 to form CodeWalrus due to various reasons explained back then, but I stopped calc dev in 2016 and am now mostly active on the CW Discord server at https://discord.gg/cuZcfcF



Official Website |T-Shirt store | Reverbnation | Facebook | Youtube | Twitter | Spotify

SirCmpwn

  • Guest
Re: Axe Terminal
« Reply #38 on: January 07, 2011, 10:52:41 pm »
Yeah, I've worked out a hacky way of running archived programs, and if the program crashes or gives me any other grief (so that it does not return to the application), and RAM is intact, there will be a temporary copy in RAM.  However, if the application is still executing when the program exits, then it will delete the temp program.

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: Axe Terminal
« Reply #39 on: January 07, 2011, 11:21:18 pm »
Can you preserve the contents of the RAM somewhere, so that if it crashes, the RAM is restored upon turning the calc back on? :D

SirCmpwn

  • Guest
Re: Axe Terminal
« Reply #40 on: January 07, 2011, 11:27:24 pm »
I could possibly do it, but it would be absurdly complex from Axe.  Plus, no other shells offer it, as far as I know.  I could possibly abuse inline Asm, but I'd have to unlock flash, which is difficult to consider from Axe.  I may have to change the flash page I'm executing from, or even have to execute from RAM, which is also complicated, especially from Axe (although I have some interesting ideas about how to do this ;)).  In short, no.

EDIT: In short, yes!  I just remembered that there is a bcall that will backup all RAM into a group called BACKUP, which is three bytes of inline asm.
« Last Edit: January 07, 2011, 11:34:37 pm by SirCmpwn »

Offline Binder News

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 785
  • Rating: +46/-3
  • Zombie of Tomorrow
    • View Profile
Re: Axe Terminal
« Reply #41 on: January 07, 2011, 11:54:04 pm »
Awesome!
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:





SirCmpwn

  • Guest
Re: Axe Terminal
« Reply #42 on: January 08, 2011, 11:05:25 am »
Ah, after looking into the bcall, I can even have the user specify the name of the group.  I'll add a switch:
EXEC -B BACKUP1 PHOENIX

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: Axe Terminal
« Reply #43 on: January 08, 2011, 11:20:17 am »
Cool!  Good luck with it. ;D

SirCmpwn

  • Guest
Re: Axe Terminal
« Reply #44 on: January 08, 2011, 01:08:10 pm »
Running into a strange problem.  I use GetCalc(L1+4,Y1 to get the program in ROM.  L1+4 is correct.  However, I use {Y1-2}r to get the length, but it isn't getting the right length.  Ideas?