Linux Format forums Forum Index Linux Format forums
Help, discussion, magazine feedback and more
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

New OS
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Linux Format forums Forum Index -> Other OS
View previous topic :: View next topic  
Author Message
M-Saunders
LXF regular


Joined: Mon Apr 11, 2005 1:14 pm
Posts: 2893

PostPosted: Mon Jul 23, 2007 10:15 am    Post subject: RE: Re: New OS Reply with quote

Lo,

It is a leap, but not a jumping-over-K2 type leap. Basically, when you switch to protected mode you lose access to the BIOS. You can't do 'int 10h'-type calls to print stuff to the screen, grab keyboard input or read sectors from a floppy disk. You need to write device drivers for these things yourself!

That's a lot of work, and you can get bogged-down in tedious technical gubbins when you'd rather be doing something cool like making a GUI. This is why, in MikeOS, I've stuck to 16-bit: it makes the OS pretty limited but means the codebase is quite clean, and not full of complicated drivers for floppy drive controllers etc.

If you look around the osdev.org forums, you'll occasionally come across a keyboard, mouse or floppy driver that someone has written for the bkerndev kernel. That'll help you get on with the cool bits and bobs.

M


Last edited by M-Saunders on Wed Jan 30, 2008 2:29 pm; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website
Dark



Joined: Sat Jul 21, 2007 3:49 am
Posts: 84

PostPosted: Mon Jul 23, 2007 2:36 pm    Post subject: Reply with quote

I played around with Mike-OS on QEMU and I have to say it was a good OS. Better then any Microsoft program (Which just about any open source thing is) The only thing is the game was like in German or something O_o
Back to top
View user's profile Send private message
M-Saunders
LXF regular


Joined: Mon Apr 11, 2005 1:14 pm
Posts: 2893

PostPosted: Mon Jul 23, 2007 3:13 pm    Post subject: Reply with quote

Yes, I think it's Czech. Whatever the case, it's a sub-32K DOS COM game, the kind that should run on MikeOS with its simple DOS compatibility routines...

M
Back to top
View user's profile Send private message Visit poster's website
kilikopele
LXF regular


Joined: Wed Aug 09, 2006 4:35 pm
Posts: 298

PostPosted: Mon Jul 23, 2007 9:43 pm    Post subject: Reply with quote

I think I'm starting to grab it now. It's a bit like studying fractals--the more you zoom in on them, the more you realize there is to take in.

I think I'll keep my comfortable seat in USER-land for a while longer. Smile
Back to top
View user's profile Send private message
M-Saunders
LXF regular


Joined: Mon Apr 11, 2005 1:14 pm
Posts: 2893

PostPosted: Mon Jul 23, 2007 11:54 pm    Post subject: Reply with quote

Yes, well put. It's like climbing a mountain for the first time -- you think you're near the top, but then more obstacles appear in your view as you get closer! That's why I think it's best to head lower: making a full OS requires so much time investment that it becomes boring, but making a mini OS as a pet project is great fun. If you grasp the basics of x86 assembly, it'd be cool if you could chip in with MikeOS!

As you may have seen, assembly language is tough but understandable. With the help of the BIOS and copious use of CALL/RET and PUSHA/POPA, you can write modular code in x86 assembly, and MikeOS uses it to the hilt. There's lots of stuff that you could add with a basic grounding in x86 -- text-based dialog boxes, date conversion routines etc. I'm heading for a 1.0 release soon, with documentation galore...

M
Back to top
View user's profile Send private message Visit poster's website
Dark



Joined: Sat Jul 21, 2007 3:49 am
Posts: 84

PostPosted: Tue Jul 24, 2007 2:39 am    Post subject: Reply with quote

Hey on Mike-Os do you think that you could include a text based (Or Graphical) Web browser or a text based IM client? Because that would be cool (Im not really sure how DOS and similar systems work Nor BIOSes and QEMU so im not sure this is even possible....)
Back to top
View user's profile Send private message
M-Saunders
LXF regular


Joined: Mon Apr 11, 2005 1:14 pm
Posts: 2893

PostPosted: Tue Jul 24, 2007 10:16 am    Post subject: Reply with quote

Well, it's technically possible, but the amount of man hours involved would be insane. First we'd need a TCP/IP stack (several months), and then drivers for various Ethernet cards and USB modems (more months). Imagine writing something that meets this specification, in assembly language:

http://tools.ietf.org/html/rfc1122

Pretty heavy going! So unless I can magically tie in some kind of DOS TCP/IP stack, I don't think we'll have Internet support on MikeOS. With a terminal emulator and serial modem, you may be able to dial up an ISP and access a remote shell -- but I don't know if any ISPs offer that nowadays. I remember Amstrad PCW fans getting online in a similar fashion...

M
Back to top
View user's profile Send private message Visit poster's website
Dark



Joined: Sat Jul 21, 2007 3:49 am
Posts: 84

PostPosted: Tue Jul 24, 2007 6:13 pm    Post subject: Reply with quote

Yah I guess that WOULD be unlikely. TC/IP stacks must be a pain to code in assembly. And drivers probably would be nearly impossible (Due to the lack of some in Linux which is coded in non-assembly)
Back to top
View user's profile Send private message
Rhakios
Moderator


Joined: Thu Apr 07, 2005 12:18 am
Posts: 7628
Location: Midlands, UK

PostPosted: Tue Jul 24, 2007 7:59 pm    Post subject: Reply with quote

I always used to be amazed by the QNX single floppy demo, a GUI with a web browser, serial modem dialler, a notepad-like app and a game. All in 1.4MB - so how hard can it be Mike? Wink
_________________
Bye, Rhakios
Back to top
View user's profile Send private message
M-Saunders
LXF regular


Joined: Mon Apr 11, 2005 1:14 pm
Posts: 2893

PostPosted: Wed Jul 25, 2007 10:27 am    Post subject: Reply with quote

Give me a 30-strong development team and a few million quid, and I'll tell you Smile

Contiki's TCP/IP stack may be a candidate for porting one day, as it's supposedly very compact and well-documented. But that'd still leave the dialup-modem-only problem...

M
Back to top
View user's profile Send private message Visit poster's website
Rhakios
Moderator


Joined: Thu Apr 07, 2005 12:18 am
Posts: 7628
Location: Midlands, UK

PostPosted: Wed Jul 25, 2007 9:03 pm    Post subject: Reply with quote

Well, as long as you can implement a pcnet32 driver I'll be happy. Smile
_________________
Bye, Rhakios
Back to top
View user's profile Send private message
View previous topic :: View next topic  
Display posts from previous:   
Post new topic   Reply to topic    Linux Format forums Forum Index -> Other OS All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Linux Format forums topic RSS feed 


Powered by phpBB © 2001, 2005 phpBB Group


Copyright 2011 Future Publishing, all rights reserved.


Web hosting by UKFast