Omnimaga

Calculator Community => Discontinued => Major Community Projects => KnightOS => Topic started by: Eeems on October 25, 2010, 11:59:36 am

Title: KnightOS/Rogue Console - Eeems
Post by: Eeems on October 25, 2010, 11:59:36 am
ok, I decided to get all my screenshots and progress for my console into one topic :)
(http://img.removedfromgame.com/imgs/1287969704-wabbitemu3.gif)(http://img.removedfromgame.com/imgs/1287975926-wabbitemu4.gif)(http://img.removedfromgame.com/imgs/1287977883-wabbitemu5.gif)(http://img.removedfromgame.com/imgs/1287978904-wabbitemu6.gif)(http://img.removedfromgame.com/imgs/1287980918-wabbitemu8.gif)(http://img.removedfromgame.com/imgs/1287981838-wabbitemu9.gif)(http://img.removedfromgame.com/imgs/1288019884-wabbitemu10.gif)(http://img.removedfromgame.com/imgs/1288022142-wabbitemu11.gif)
Yay! lots of screenshots!
Title: Re: KnightOS/Rogue Console - Eeems
Post by: Deep Toaster on October 25, 2010, 12:07:46 pm
It looks great! I thought it was a shot of a huge 384x128 calculator screen, though :D Is Rogue going to be completely console-based?
Title: Re: KnightOS/Rogue Console - Eeems
Post by: mapar007 on October 25, 2010, 12:27:05 pm
It looks great! I thought it was a shot of a huge 384x128 calculator screen

KOS+Calc2net = win. Actually, THAT would be awesome.

@Deep Thought: I don't think he means the game. Rogue's just the title, right Eeems?
Title: Re: KnightOS/Rogue Console - Eeems
Post by: SirCmpwn on October 25, 2010, 04:43:24 pm
Awesome, Eeems!
This is actually running on the current build of KnightOS - there is no difference between it and Rouge.
Title: Re: KnightOS/Rogue Console - Eeems
Post by: DJ Omnimaga on October 25, 2010, 04:45:19 pm
Really nice, Eeems :D
Title: Re: KnightOS/Rogue Console - Eeems
Post by: yunhua98 on October 25, 2010, 04:46:51 pm
Do you have a textroll inside as well?  :P

It looks really nice so far!  ;)
Title: Re: KnightOS/Rogue Console - Eeems
Post by: LordConiupiter on October 25, 2010, 04:47:46 pm
Awesome, Eeems!
This is actually running on the current build of KnightOS - there is no difference between it and Rouge.
but I guess there is a difference between rouge and rogue? :P
Title: Re: KnightOS/Rogue Console - Eeems
Post by: Deep Toaster on October 25, 2010, 04:49:59 pm
It looks great! I thought it was a shot of a huge 384x128 calculator screen

KOS+Calc2net = win. Actually, THAT would be awesome.

@Deep Thought: I don't think he means the game. Rogue's just the title, right Eeems?

I know :P I was just wondering if Eeems's OS was completely console based. Answered by SIr.

You made me lose, though >:(

Do you have a textroll inside as well?  :P

IT NEEDS ONE
Title: Re: KnightOS/Rogue Console - Eeems
Post by: SirCmpwn on October 25, 2010, 04:51:28 pm
KnightOS and Rouge, I mean.
Title: Re: KnightOS/Rogue Console - Eeems
Post by: Eeems on October 25, 2010, 06:28:09 pm
Rogue is my version of the OS which is not any different from KnightOS yet, and no I intend to make it x-window's like, with a console though. :)
Getting back to work now :)
Title: Re: KnightOS/Rogue Console - Eeems
Post by: DJ Omnimaga on October 25, 2010, 08:59:37 pm
I assume those different OSes will kinda be like how Linux has different distros, right?
Title: Re: KnightOS/Rogue Console - Eeems
Post by: SirCmpwn on October 25, 2010, 11:21:43 pm
Exactly.  KnightKernel will be released separately from KnightOS.
Title: Re: KnightOS/Rogue Console - Eeems
Post by: shmibs on October 25, 2010, 11:37:52 pm
diversity is a wonderful thing.
Title: Re: KnightOS/Rogue Console - Eeems
Post by: Eeems on October 26, 2010, 12:44:43 am
So true :D
And since it will all have the same Kernel, programs should be able to work on all of them, as long as you have the required lib's and stuff :D
Title: Re: KnightOS/Rogue Console - Eeems
Post by: DJ Omnimaga on October 26, 2010, 02:22:23 am
Yeah true. As long as it uses the same Kernel, it is nice that there are various OSes to suit everyone's need. People who prefer a command-prompt one might prefer yours, people who always want a GUI may prefer SirCmpwn's and maybe there will be one that looks almost like the TI-86/Casio OSes for those who prefer that style, we never know :P .
Title: Re: KnightOS/Rogue Console - Eeems
Post by: Eeems on October 26, 2010, 03:05:10 am
Well actually mine is going to be windows based, this command line is just me getting some basic stuff made and learning the kernel.
Title: Re: KnightOS/Rogue Console - Eeems
Post by: DJ Omnimaga on October 26, 2010, 04:10:08 am
Oh ok. Will it still be available in command line too?
/me wonders how small an OS running SirCmpwn Kernel would be if it was all command-based...
Title: Re: KnightOS/Rogue Console - Eeems
Post by: Broseph Radson on October 26, 2010, 08:51:44 am
So basically its like linux for the 83+ 84+?
Title: Re: KnightOS/Rogue Console - Eeems
Post by: Eeems on October 26, 2010, 09:40:48 am
DJ: yeah the command line will be there, maybe not v2.0, but there will be one :p
Broseph Radson: kind of :)
Title: Re: KnightOS/Rogue Console - Eeems
Post by: LordConiupiter on October 26, 2010, 09:41:47 am
will you be able to drag windows? or will they be like tabs, so you can just only switch between them?
Title: Re: KnightOS/Rogue Console - Eeems
Post by: Eeems on October 26, 2010, 09:43:20 am
Most likely switching. Dont know how I'm going to make the interface look exactly yet.

Ok, so I'm having an issue with my LD command, for some reason after converting it over I can't get it to work, here is the code for the LD routine: http://eeems.pastebin.com/8wig6K27 and HEXFromString: http://eeems.pastebin.com/REs3kzL2
It should work, but no hex is loaded for some reason...any ideas?
Title: Re: KnightOS/Rogue Console - Eeems
Post by: Broseph Radson on October 26, 2010, 04:14:23 pm
If you do have movable windows you should have a move button that you can toggle so you don't have to grab the title bar. Makes it easier ya know :)
Title: Re: KnightOS/Rogue Console - Eeems
Post by: Eeems on October 26, 2010, 04:36:24 pm
well, I think movable window's might be a bad idea, it would be pretty hard to implement.
Title: Re: KnightOS/Rogue Console - Eeems
Post by: SirCmpwn on October 26, 2010, 04:39:52 pm
Oh ok. Will it still be available in command line too?
/me wonders how small an OS running SirCmpwn Kernel would be if it was all command-based...
With modifications, you could fit Eeem's entire OS, including my kernel and his terminal, into one page.
Title: Re: KnightOS/Rogue Console - Eeems
Post by: Broseph Radson on October 26, 2010, 06:16:40 pm
Movable windows would be inefficient in terms of space. With the other method maybe when you switch from one window to another then the process for the then inactive window could stop or idle until you switch back to it?
Sorry ts kinda hard to explain wut I'm sayin lol
Title: Re: KnightOS/Rogue Console - Eeems
Post by: Eeems on October 26, 2010, 07:33:13 pm
I know what you are saying and yes that is kind of the plan on how I want it to work :)
Multitasking is going to be supported so it will already have the framework to do this :)
Title: Re: KnightOS/Rogue Console - Eeems
Post by: Broseph Radson on October 26, 2010, 10:35:32 pm
Kk. Don't want to strain that old zilog z8000. He might get grumpy :D
Title: Re: KnightOS/Rogue Console - Eeems
Post by: Eeems on October 26, 2010, 10:59:03 pm
(http://img.removedfromgame.com/imgs/1288148225-wabbitemu1.gif)
Just added a small power menu
Title: Re: KnightOS/Rogue Console - Eeems
Post by: DJ Omnimaga on October 27, 2010, 02:00:03 am
Oh ok. Will it still be available in command line too?
/me wonders how small an OS running SirCmpwn Kernel would be if it was all command-based...
With modifications, you could fit Eeem's entire OS, including my kernel and his terminal, into one page.
Wow O.o. That means we would almost have 2 MB of free archive on a SE calc.

(http://img.removedfromgame.com/imgs/1288148225-wabbitemu1.gif)
Just added a small power menu
Nice :D
Title: Re: KnightOS/Rogue Console - Eeems
Post by: LordConiupiter on October 28, 2010, 05:47:09 am
nice! another question: will this OS be event driven? or will it be the way TiOS is?
Title: Re: KnightOS/Rogue Console - Eeems
Post by: DJ Omnimaga on October 28, 2010, 07:18:39 am
What does event-driven means? I checked Wikipedia for it, but I still couldn't understand. What would be an example of event-drivenness for a calculator OS that the TI-OS doesn't do?
Title: Re: KnightOS/Rogue Console - Eeems
Post by: mapar007 on October 28, 2010, 07:39:45 am
IIRC it's basically allowing programs to be 'notified' of certain events (e.g. file access or link port stuff). I don't know for sure.
Title: Re: KnightOS/Rogue Console - Eeems
Post by: SirCmpwn on October 28, 2010, 08:11:51 am
The GUI will probably be event driven, but I'm not sure about other things.
Event driven means that certain things will happen to trigger 3rd party code to run, if I'm correctly interpreting LordConuptier.
Title: Re: KnightOS/Rogue Console - Eeems
Post by: DJ Omnimaga on October 28, 2010, 09:42:55 am
Ah so I guess it will be like cron jobs?
Title: Re: KnightOS/Rogue Console - Eeems
Post by: LordConiupiter on October 28, 2010, 01:39:57 pm
well, no, not exactly. It's just like Windows. when you click on a Textbox, what you type will appear in that textbox, and when you click somewhere else, that will be activated. It means code is run based on what the user does. In TiOS, when you have to type a name for something, you can just only type a name in the selected input, and you can't select another input. When you want to cancel, you can press clear, but that will bring you back into the main loop of TiOS'es code.

In short:
Event-driven: code is linked to actions of the user.
non-event-driven: code is just build up in simple loops and lusses.

conclusion: Event-driven is much more flexible!
Title: Re: KnightOS/Rogue Console - Eeems
Post by: SirCmpwn on October 28, 2010, 04:38:56 pm
Yes, it will be event driven, in that case, at least with GUI.
Title: Re: KnightOS/Rogue Console - Eeems
Post by: DJ Omnimaga on October 28, 2010, 08:26:20 pm
Ah ok I see. That seems better then :D
Title: Re: KnightOS/Rogue Console - Eeems
Post by: Deep Toaster on October 29, 2010, 10:30:31 am
That sounds great! So does that mean we can switch between parts of the OS without canceling each one?
Title: Re: KnightOS/Rogue Console - Eeems
Post by: Eeems on October 29, 2010, 10:57:05 am
Pretty much :)
Title: Re: KnightOS/Rogue Console - Eeems
Post by: SirCmpwn on October 29, 2010, 04:38:52 pm
It's already multithreaded - you can run 20 programs at the same time.
Title: Re: KnightOS/Rogue Console - Eeems
Post by: Eeems on October 29, 2010, 04:57:30 pm
Ah so you put a cap on the amount you can run :)
Title: Re: KnightOS/Rogue Console - Eeems
Post by: SirCmpwn on October 29, 2010, 06:03:32 pm
Yeah, there's only so much room in the thread table.
Title: Re: KnightOS/Rogue Console - Eeems
Post by: Eeems on October 29, 2010, 06:07:22 pm
Ah ok I thought so :)
well it's a good idea anyways :)
Title: Re: KnightOS/Rogue Console - Eeems
Post by: willrandship on November 07, 2010, 08:55:29 pm
Will one program running by itself be faster than 20, or do you just have free threads left idle?
Title: Re: KnightOS/Rogue Console - Eeems
Post by: DJ Omnimaga on November 07, 2010, 10:26:20 pm
I think it will run faster, but I'm not sure. If I remember, programs that are in the background won't take as much processing power as the main one. Or only some stuff will be ran. SirCmpwn would need to confirm this, but you might be able to find some info in the other threads in the meantime.
Title: Re: KnightOS/Rogue Console - Eeems
Post by: Deep Toaster on November 07, 2010, 10:29:49 pm
I'm pretty sure it would be slower with multiple threads. I think someone mentioned that having too many threads would be impractical, so it probably just starts at one thread.
Title: Re: KnightOS/Rogue Console - Eeems
Post by: SirCmpwn on November 07, 2010, 10:56:50 pm
It will be slower than multiple threads, yes.  However, threads can set an option - FreezeOnIdle.  This option means that if the thread does not have focus, it is frozen and no longer executed until it is no longer idle.  This is useful for a notepad type of thing.  The notepad process would freeze when switched out, and resume when switched in.  Programs like Mosaic would be set to remain active on idle while compiling, for example.
Title: Re: KnightOS/Rogue Console - Eeems
Post by: LordConiupiter on November 09, 2010, 02:19:06 pm
That's a good idea. Is this already implemented? And what do you mean with this:
It will be slower than multiple threads, yes.
This can be interpreted as an confirmation of Deep Thoughts post, but in content it means something different, the way I read it, could you clarify it pls?
Title: Re: KnightOS/Rogue Console - Eeems
Post by: DJ Omnimaga on November 09, 2010, 03:11:36 pm
It will be slower than multiple threads, yes.  However, threads can set an option - FreezeOnIdle.  This option means that if the thread does not have focus, it is frozen and no longer executed until it is no longer idle.  This is useful for a notepad type of thing.  The notepad process would freeze when switched out, and resume when switched in.  Programs like Mosaic would be set to remain active on idle while compiling, for example.
Yeah sounds like a cool idea. It would suck if you opened a game then quickly switched to a math program with teacher key or something, but the math stuff ran several times slower :P
Title: Re: KnightOS/Rogue Console - Eeems
Post by: SirCmpwn on November 09, 2010, 04:42:53 pm
Well, games would probably want FreezeOnIdle.  This would stop them from running when you opened up the math stuff.
Title: Re: KnightOS/Rogue Console - Eeems
Post by: Deep Toaster on November 09, 2010, 08:04:27 pm
Well, games would probably want FreezeOnIdle.  This would stop them from running when you opened up the math stuff.

Sounds like a really good idea :D

It will be slower than multiple threads, yes.  However, threads can set an option - FreezeOnIdle.  This option means that if the thread does not have focus, it is frozen and no longer executed until it is no longer idle.  This is useful for a notepad type of thing.  The notepad process would freeze when switched out, and resume when switched in.  Programs like Mosaic would be set to remain active on idle while compiling, for example.
Yeah sounds like a cool idea. It would suck if you opened a game then quickly switched to a math program with teacher key or something, but the math stuff ran several times slower :P

I really hope teachers will allow KnightOS :P
Title: Re: KnightOS/Rogue Console - Eeems
Post by: DJ Omnimaga on November 10, 2010, 02:07:53 am
Well, games would probably want FreezeOnIdle.  This would stop them from running when you opened up the math stuff.
Yeah I meant some sort of pause on them, so they resume when no longer idle.
Title: Re: KnightOS/Rogue Console - Eeems
Post by: SirCmpwn on November 10, 2010, 10:44:34 am
Yeah, that's correct.  There will be an event driven system so that programs will know when they are about to be frozen, too, so that they can pause the game or something.