Author Topic: [z80] cmdOS, a 3rd-party OS written from scratch  (Read 8450 times)

0 Members and 1 Guest are viewing this topic.

Offline Matrefeytontias

  • Axe roxxor (kinda)
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1982
  • Rating: +310/-12
  • Axe roxxor
    • View Profile
    • RMV Pixel Engineers
Re: [z80] cmdOS, a 3rd-party OS written from scratch
« Reply #15 on: March 21, 2013, 01:26:02 pm »
Update !

Got the argument parsing work :)



I planned command input like this : when you input a command, you can specify two kinds of parameters, classic and special. A special parameter is the minus character - followed by one letter, and a classic parameter is at least one letter, A to Z, or one number, 0 to 9. Special parameters will be copied to another memory area than classic parameters so they'll be easier to handle by user programs.

As I said sonner, each and every command will be a program stored in the filesystem (currently working on it) and which will be ran with the given arguments, if any. So, the OS itself will be a tiny command-line which can run programs, a filesystem, and many, many functions for the programmers to use in their programs.

The main interest of this OS is that I try to make it use as little RAM as possible, so there will be a great free space for user programs. Also, I try to provide as many routines as possible to make user programs as small as possible, allowing for even more features in each.

Offline Matrefeytontias

  • Axe roxxor (kinda)
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1982
  • Rating: +310/-12
  • Axe roxxor
    • View Profile
    • RMV Pixel Engineers
Re: [z80] cmdOS, a 3rd-party OS written from scratch
« Reply #16 on: March 23, 2013, 05:19:15 am »
I made a GitHub repository, for those who wants to test the OS or to see the source code : https://github.com/matrefeytontias/cmdOS

Offline Dapianokid

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 539
  • Rating: +46/-27
  • That one dude
    • View Profile
Re: [z80] cmdOS, a 3rd-party OS written from scratch
« Reply #17 on: March 23, 2013, 01:38:06 pm »
So, ultimately, the programs could theoretically be paraphrased in TIBASIC as

prgmFunction1
prgmFunction2
prgmFunction3
... and so on, like writing a program entirely out of bcalls?
Keep trying.

Offline Matrefeytontias

  • Axe roxxor (kinda)
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1982
  • Rating: +310/-12
  • Axe roxxor
    • View Profile
    • RMV Pixel Engineers
Re: [z80] cmdOS, a 3rd-party OS written from scratch
« Reply #18 on: March 23, 2013, 04:47:19 pm »
No, don't misunderstand programs and inline commands. Programs are actual ASM programs, written and compiled on a PC, sent to the calc and then executed in the command line as functions.

For example, if mario happens to be written for cmdOS, you'd do >> mario in the command line to run it.
« Last Edit: March 23, 2013, 04:48:45 pm by Matrefeytontias »

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: [z80] cmdOS, a 3rd-party OS written from scratch
« Reply #19 on: March 23, 2013, 05:57:32 pm »
INteresting. If this comes to fruition, will it eventually support programs like Axe Parser and math tools so that people who want to code, for example, can use something different than ASM and those who need regular math tools for class can install them as add-in?


Offline Matrefeytontias

  • Axe roxxor (kinda)
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1982
  • Rating: +310/-12
  • Axe roxxor
    • View Profile
    • RMV Pixel Engineers
Re: [z80] cmdOS, a 3rd-party OS written from scratch
« Reply #20 on: March 23, 2013, 06:17:23 pm »
I think you misunderstood the main goal of the OS :P

What I want to achieve while writing this OS is to provide an easy-to-use development environment, with a lot of available RAM, functions etc. In fact, it's an empty OS which only wait for ASM programmers to feature it. You want a math program ? Do it and share it ! :P

Offline Dapianokid

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 539
  • Rating: +46/-27
  • That one dude
    • View Profile
Re: [z80] cmdOS, a 3rd-party OS written from scratch
« Reply #21 on: March 23, 2013, 06:25:26 pm »
Well GlassOS is too difficult for me to understand because of it's C nature. Maybe this OS will be better for me :)
Keep trying.

Offline chickendude

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 817
  • Rating: +90/-1
  • Pro-Riot Squad
    • View Profile
Re: [z80] cmdOS, a 3rd-party OS written from scratch
« Reply #22 on: March 23, 2013, 10:20:59 pm »
It sounds pretty cool. Where are programs run from? Is there a gbuf or some area(s) dedicated to saferam? Or is the RAM always completely free (ie programs will always be in archive)?

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: [z80] cmdOS, a 3rd-party OS written from scratch
« Reply #23 on: March 24, 2013, 12:17:52 am »
Looking a bit like UNIX shell now, nice work!

Looks like a fun project. I've wanted to make an OS for practice too, but never got around to it. Thanks for reminding me :D
« Last Edit: March 24, 2013, 12:18:29 am by Deep Thought »




Offline Matrefeytontias

  • Axe roxxor (kinda)
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1982
  • Rating: +310/-12
  • Axe roxxor
    • View Profile
    • RMV Pixel Engineers
Re: [z80] cmdOS, a 3rd-party OS written from scratch
« Reply #24 on: March 27, 2013, 09:50:46 am »
Update :)

File system is here (but in RAM for now) ! Plus the FILEINFO command to retrieve some info from the filename given as argument :) I also made a findVar routine, which is equivalent to TI-OS's _checkFindSym (used in the command). For now, the file is hard-coded using Wabbit's debugger but I'll make an editor for those who wants to program in hexadecimal on-calc ;)



Btw, as it's been requested on IRC, I join the zip of the full current source and executable.
« Last Edit: March 27, 2013, 09:52:44 am by Matrefeytontias »

Offline TheNlightenedOne

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 427
  • Rating: +16/-1
    • View Profile
Re: Re: [z80] cmdOS, a 3rd-party OS written from scratch
« Reply #25 on: March 27, 2013, 03:08:38 pm »
* TheNlightenedOne lost
Looks awesome!
"Eris" (Ndless 3.1)
"Keto" (Ndless 3.1)
"Luna" (AMS 3.10, HW4)
"Aurora" (2.55MP)

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: [z80] cmdOS, a 3rd-party OS written from scratch
« Reply #26 on: March 27, 2013, 04:09:41 pm »
yeah, that is looking awesome :D
* Sorunome lost too

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline persalteas

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 231
  • Rating: +44/-4
  • z80 poweeer
    • View Profile
    • Tout-82
Re: [z80] cmdOS, a 3rd-party OS written from scratch
« Reply #27 on: March 28, 2013, 05:33:32 am »
To thank Sircmpwn to have given you his font, you should explain him how to make a filesystem like that...
I'm not sure that he is comfortable with that...


Offline Matrefeytontias

  • Axe roxxor (kinda)
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1982
  • Rating: +310/-12
  • Axe roxxor
    • View Profile
    • RMV Pixel Engineers
Re: [z80] cmdOS, a 3rd-party OS written from scratch
« Reply #28 on: March 28, 2013, 05:35:58 am »
Are you kidding ? XD

KnightOS's filesystem is 1000 times better than mine, only to mention that it's fully in archive.

Offline persalteas

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 231
  • Rating: +44/-4
  • z80 poweeer
    • View Profile
    • Tout-82
Re: [z80] cmdOS, a 3rd-party OS written from scratch
« Reply #29 on: March 28, 2013, 05:37:11 am »
There is one ? The last version I have of KnightOS doesn't have a filesystem...
I thought he was making one... and that he had difficulties.