Author Topic: A new (probably pretty bad too) OS  (Read 13354 times)

0 Members and 1 Guest are viewing this topic.

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: A new (probably pretty bad too) OS
« Reply #15 on: April 13, 2010, 05:23:56 pm »
Well, if I have the hex, I can package it as an app for you.
What would you do about the absolute jumps though?  If there was a jp $9D9A in the code you would have to remap it to jp $4005.  With only the hex code, you have to disassemble it and it would be pretty cumbersome to do.

I didn't know ion wasn't an app.  Hmm... now that I think about it, maybe it is possible, but what you would have to do is write some code to a safe ram area that is able to run the new program and then re-open the shell again after it returns.  Then you would have to jump to that location and hope that the client code doesn't write over that area.  All of that still requires a lot of inline ASM.
___Axe_Parser___
Today the calculator, tomorrow the world!

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6268
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: A new (probably pretty bad too) OS
« Reply #16 on: April 13, 2010, 05:28:15 pm »
hmm, well you could talk to Kerm from Cemetech and find out how he does his runprog for DCS..
/e

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: A new (probably pretty bad too) OS
« Reply #17 on: April 13, 2010, 05:37:30 pm »
This sounds interesting and curious what you come up with.

Hey, I wrote an OS in TI-BASIC one time with a start menu, games, notepad, paint, and some other stuff.  So its certainly possible.  But realistically, I don't think you'll be able to do program launching from a program since it would need to copy it over it's own code, destroying the shell.  It pretty much has to be an application to do that.  I like the idea though, there's still probably a lot you can do, certainly much more than BASIC.

Did you ever release the OS program you made?
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

_player1537

  • Guest
Re: A new (probably pretty bad too) OS
« Reply #18 on: April 13, 2010, 05:43:19 pm »
in dcs, kerm moves parts of the program into a safe ram area and cycles through it.  I believe he said he only needed 800 bytes of ram to run it (might be the size of a safe ram area)

SirCmpwn

  • Guest
Re: A new (probably pretty bad too) OS
« Reply #19 on: April 13, 2010, 05:43:29 pm »
Well, if I have the hex, I can package it as an app for you.
What would you do about the absolute jumps though?  If there was a jp $9D9A in the code you would have to remap it to jp $4005.  With only the hex code, you have to disassemble it and it would be pretty cumbersome to do.

I didn't know ion wasn't an app.  Hmm... now that I think about it, maybe it is possible, but what you would have to do is write some code to a safe ram area that is able to run the new program and then re-open the shell again after it returns.  Then you would have to jump to that location and hope that the client code doesn't write over that area.  All of that still requires a lot of inline ASM.

Hmm, I could always just have the app run the shell from 9D95 and return to the shell as soon as programs were finished executing.  As for saferam, you could just call programs instead of jumping to them.  Then, when they ret out, they come back to you.

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: A new (probably pretty bad too) OS
« Reply #20 on: April 13, 2010, 05:59:24 pm »
Did you ever release the OS program you made?

No, it got deleted in a RAM clear many years ago.  And the backup I had made was pretty outdated so I just gave up :(
___Axe_Parser___
Today the calculator, tomorrow the world!

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: A new (probably pretty bad too) OS
« Reply #21 on: April 13, 2010, 06:02:27 pm »
Awww :( Sad panda. That really sucks, it sounds interesting. Do you remember how big it was? Did it used libraries or anything?
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

SirCmpwn

  • Guest
Re: A new (probably pretty bad too) OS
« Reply #22 on: April 13, 2010, 06:06:05 pm »
I wrote an entire TI-Basic shell that featured a full GUI, simulated multi-threading, password protection, a full filesystem, and the ability to run Ion, MirageOS, no-stub, TI-Basic, and even DCS6 programs.  No joke.

It got lost when my parents cleared my calculator's entire memory once.

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: A new (probably pretty bad too) OS
« Reply #23 on: April 13, 2010, 06:07:47 pm »
How long ago was that? That sucks, it sounds cool.
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

SirCmpwn

  • Guest
Re: A new (probably pretty bad too) OS
« Reply #24 on: April 13, 2010, 06:09:16 pm »
About a year ago.
It was pretty sweet, if not a little slow.  The DCS support was a bit buggy though.

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: A new (probably pretty bad too) OS
« Reply #25 on: April 13, 2010, 06:10:53 pm »
No, no libraries.  This was before I even knew libraries existed.  It was about 5-6k at the peak.  Like I said, I still have an old backup, but its really lame without all the features.
___Axe_Parser___
Today the calculator, tomorrow the world!

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: A new (probably pretty bad too) OS
« Reply #26 on: April 13, 2010, 06:16:08 pm »
Well if it has the GUI still it'd be cool to see :) and that's not to bad on the size, I thought it'd be a lot bigger.

And that's a bummer, SirCmpwn. It sounds like it would have been really cool. What was yours written in or what did it used library wise or anything?

By the way, we should get back on topic pretty soon :P
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

SirCmpwn

  • Guest
Re: A new (probably pretty bad too) OS
« Reply #27 on: April 13, 2010, 06:18:59 pm »
It used xLib, as well as some other assembly programs.  It pretty much used everything ever made for the calculator.  Codex, xLib, program options (that one is more obscure).  I didn't know about Celtic III at that time, but I used almost everything else.

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: A new (probably pretty bad too) OS
« Reply #28 on: April 13, 2010, 06:31:30 pm »
Ah ok, that's cool. Do you remember how big it was?
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

SirCmpwn

  • Guest
Re: A new (probably pretty bad too) OS
« Reply #29 on: April 13, 2010, 06:32:43 pm »
Oh geez, it was forever ago.  But I'm pretty good about optimizing, so I don't think it was outrageous.