Who could recommend book or document about 16 bits OS

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
leetow2003
Member
Member
Posts: 70
Joined: Fri Nov 19, 2010 6:54 pm

Who could recommend book or document about 16 bits OS

Post by leetow2003 »

I want to learn how to write OS about 16 bits,who
could recommend book or document,it can implement simple
functions,and the book need include detail explanation
and source codes,who could help me?
User avatar
iansjack
Member
Member
Posts: 4711
Joined: Sat Mar 31, 2012 3:07 am
Location: Chichester, UK

Re: Who could recommend book or document about 16 bits OS

Post by iansjack »

http://books.google.co.uk/books?id=_dhQ ... r_versions

A classic. I think you need the first or second editions for 16-bit code.
User avatar
bwat
Member
Member
Posts: 359
Joined: Fri Jul 03, 2009 6:21 am

Re: Who could recommend book or document about 16 bits OS

Post by bwat »

XINU

Get the IBM PC version of the book. http://www.amazon.com/Operating-System- ... words=xinu
Make sure you get the right version, there's a few different versions out there: Mac, Linksys router, LSI-11.

Get the code here: ftp://ftp.cs.purdue.edu/pub/Xinu/XINU-PC-BOOK-CODE.tar
Every universe of discourse has its logical structure --- S. K. Langer.
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: Who could recommend book or document about 16 bits OS

Post by Combuster »

I also wouldn't recommend any book (except perhaps something on assembly basics, logic, or even an English grammar book for various other reasons) until I manage to find out what keeps you stuck with the most simple problems and monkey-see-monkey-do behaviour.

What you need is a tutor, professional education, or more effectively, simply a different hobby.

---

For all the other readers: 16-bit is outdated and not worth your money.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
leetow2003
Member
Member
Posts: 70
Joined: Fri Nov 19, 2010 6:54 pm

Re: Who could recommend book or document about 16 bits OS

Post by leetow2003 »

Combuster wrote:I also wouldn't recommend any book (except perhaps something on assembly basics, logic, or even an English grammar book for various other reasons) until I manage to find out what keeps you stuck with the most simple problems and monkey-see-monkey-do behaviour.

What you need is a tutor, professional education, or more effectively, simply a different hobby.

---

For all the other readers: 16-bit is outdated and not worth your money.
I want to learn the OS,so I want to start learning from 16-bit,maybe I need basical tutorial
User avatar
thepowersgang
Member
Member
Posts: 734
Joined: Tue Dec 25, 2007 6:03 am
Libera.chat IRC: thePowersGang
Location: Perth, Western Australia
Contact:

Re: Who could recommend book or document about 16 bits OS

Post by thepowersgang »

leetow2003 wrote:I want to learn the OS,so I want to start learning from 16-bit,maybe I need basical tutorial
May I point out that that opinion is the worst fallicy of OSDev. 16-bit code is not simple, nor is it a precursor to moving to 32-bit code. Writing code in real mode requires a completely different mindset to writing code in protected mode, and hence is not a good starting point.

Do yourself a favor, and start with 32-bit code (and once you have that down pat, MAYBE try 16-bit if you need to)
Kernel Development, It's the brain surgery of programming.
Acess2 OS (c) | Tifflin OS (rust) | mrustc - Rust compiler
Currently Working on: mrustc
User avatar
nerdguy
Member
Member
Posts: 70
Joined: Wed Oct 30, 2013 8:11 am

Re: Who could recommend book or document about 16 bits OS

Post by nerdguy »

I want to learn the OS
I got confused when I read this.
Do you want to learn about an existing operating system like Windows or Linux or Want to learn
about Operating Systems Development?
Both are similar in certain ways, I have some good books about Linux,
And as for 16 bit code try reading some books about DOS Programming and x86 Assembly, And don't
forget RBIL (Ralf Brown's Interrupt List) great place for BIOS Interrupts.
I need a basical tutorial
What's up with the wiki? Is the wiki not enough for a basic tutorial. I guess there
are 4 of them. I dont know whether it could be helpful but Try to get a copy of 8086 Manuals.
When you say, "I wrote a program that crashed Windows," people just stare at you blankly and say, "Hey, I got those with the system, for free." - Linus Torvalds
64 bit Kernel in early development
http://github.com/nerdguy12/core64
PearOs
Member
Member
Posts: 194
Joined: Mon Apr 08, 2013 3:03 pm
Location: Usually at my keyboard!

Re: Who could recommend book or document about 16 bits OS

Post by PearOs »

This might be the worst advice in the world, but here's my opinion. I don't know how good your programming skills are, but with that being said I think the best way to really understand a language is to know what everything does. I know one way to do this with 16bit Assembly is to right a 8086 Emulator because then you learn every opcode, how the CPU works, and everything. I learned a lot when I began writing mine, there was a lot of head banging against the wall with miss information and errors in documents that I was reading but in the end it was really neat and will be beneficial later on. Or do what I did and jump to 32bit code in Assembly and just mess around till you understand everything.


Yours Truly, Matt
User avatar
Love4Boobies
Member
Member
Posts: 2111
Joined: Fri Mar 07, 2008 5:36 pm
Location: Bucharest, Romania

Re: Who could recommend book or document about 16 bits OS

Post by Love4Boobies »

leetow2003 wrote:I want to learn the OS,so I want to start learning from 16-bit,maybe I need basical tutorial
Here's what your question sounds like to us: "I need a tutorial on driving cars from the '60s." Cars are still cars---you just need to get adjusted to the one you're driving. And, of course, be prepared to miss out on the newer developments, like automatic transmission, airbags, CD players, self-driving (okay, this is not yet commonplace but, given the economical benefits, it probably will be in 10 years' time), etc.

Analogies aside, you want to learn OS theory (and other theories that are related to your particular goal) and the details of the hardware you're going to implement your OS on (in this case, I suspect you mean PC's, although there are plenty of architectures which are ambiguously called "16-bit," which is mostly a marketing term rather than a technical one). Don't conflate the two even if you plan on using them together. If you were to write a book in a foreign language unknown to you, you'd develop the plot separately from learning the language, correct?
"Computers in the future may weigh no more than 1.5 tons.", Popular Mechanics (1949)
[ Project UDI ]
User avatar
qw
Member
Member
Posts: 792
Joined: Mon Jan 26, 2009 2:48 am

Re: Who could recommend book or document about 16 bits OS

Post by qw »

Combuster wrote:For all the other readers: 16-bit is outdated and not worth your money.
I think it is perfectly legitimate to develop a hobby OS in real mode. After all every hobby OS is a waste of money, and time, and effort. The only reward is satisfaction, which is not dependent on processor mode at all.
M-Saunders
Member
Member
Posts: 155
Joined: Fri Oct 27, 2006 5:11 am
Location: Oberbayern
Contact:

Re: Who could recommend book or document about 16 bits OS

Post by M-Saunders »

Hobbes wrote:
Combuster wrote:For all the other readers: 16-bit is outdated and not worth your money.
I think it is perfectly legitimate to develop a hobby OS in real mode. After all every hobby OS is a waste of money, and time, and effort. The only reward is satisfaction, which is not dependent on processor mode at all.
It depends on what you want to learn. If the OP wants to get a better insight into the way modern operating systems handle memory and processes, then he should steer well clear of 16-bit real mode.

OP: if you really want to learn about real mode OSes, you might find the code in MikeOS (http://mikeos.berlios.de) useful. It's pretty well documented and I've written a lot about its working in the Handbooks. Just be aware that real mode OSes are something of a cul-de-sac -- they can be fun to play around with, as you can get results very quickly, but a lot of the stuff you learn won't be much use if you decide to make a "proper" protected mode OS later on.

Mike
MikeOS -- simple, well-documented x86 real-mode OS written in assembly language
http://mikeos.sourceforge.net
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: Who could recommend book or document about 16 bits OS

Post by Combuster »

Hobbes wrote:I think it is perfectly legitimate to develop a hobby OS in real mode. After all every hobby OS is a waste of money
You made me curious, how much actual money did you spend solely in the name of your OS? Was it worth it?
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
leetow2003
Member
Member
Posts: 70
Joined: Fri Nov 19, 2010 6:54 pm

Re: Who could recommend book or document about 16 bits OS

Post by leetow2003 »

Your advice is very important to me.Thank you very much.
h0bby1
Member
Member
Posts: 240
Joined: Wed Aug 21, 2013 7:08 am

Re: Who could recommend book or document about 16 bits OS

Post by h0bby1 »

if your objective at the end is to develop modern 32 bit protected mode OS, there is really little need to learn 16 bit real mode, as you can already find plethora of tools that are already very mature who can do all the 16 bit real mode part , like boot loaders, and in modern OS, 16 bit real mode is really only used for the boot loader in the very first stages

it can be useful if you want to do some kind of dos emulator, or you want to have to deal with code wrote in 16 bit mode, or the bios, and modern intel still can operate in a mode 100% compatible with 16 bit real mode, so it's still in the intel, and modern intel can still technically run code made for 16 bit real mode, but it's still a very different approach to everything compared to how modern os are made, using paged virtual memory, memory protection, and multi tasking, and learning real mode will give you very little benefits to develop os in the modern way
Post Reply