Recommended Driver Scanner

Member Panel



Join the PC Help Forum Team

Join PC Help Forum on Facebook

Join the PCHF Distributed Computing Teams

Try the NEW PC Help Forum Dark style

Link to PCHF from other parts of the Internet

PC Forum PC Help Forum » Operating Systems » Other OS » [Answered] Call Me Crazy!!!

Other OS - Call Me Crazy!!! posted in the Operating Systems forums; Call Me Crazy, but, how do you create a OS?...

JOIN US NOW to remove these Ads

I Can Fix This  I Need Help  
  #1  
Old 12-02-2008
Segadude3000's Avatar
Elite Member
My PC
 
Join Date: Mar 2008
Location: C:\Program Files\PCHF\Segadude3000
Posts: 423
PC Experience: Windows 95, 98, CE
Segadude3000 - See this Members User comments on their Profile pageSegadude3000 - See this Members User comments on their Profile pageSegadude3000 - See this Members User comments on their Profile pageSegadude3000 - See this Members User comments on their Profile pageSegadude3000 - See this Members User comments on their Profile pageSegadude3000 - See this Members User comments on their Profile pageSegadude3000 - See this Members User comments on their Profile pageSegadude3000 - See this Members User comments on their Profile pageSegadude3000 - See this Members User comments on their Profile pageSegadude3000 - See this Members User comments on their Profile pageSegadude3000 - See this Members User comments on their Profile page
Send a message via Yahoo to Segadude3000 Send a message via Skype™ to Segadude3000
Question Call Me Crazy!!!

Call Me Crazy, but, how do you create a OS?


  #2  
Old 12-02-2008
codex's Avatar
Tech Member
My PC
 
Join Date: Nov 2008
Location: south carolina
Posts: 368
PC Experience: Very Experienced
codex - See this Members User comments on their Profile pagecodex - See this Members User comments on their Profile pagecodex - See this Members User comments on their Profile pagecodex - See this Members User comments on their Profile pagecodex - See this Members User comments on their Profile pagecodex - See this Members User comments on their Profile pagecodex - See this Members User comments on their Profile pagecodex - See this Members User comments on their Profile pagecodex - See this Members User comments on their Profile pagecodex - See this Members User comments on their Profile pagecodex - See this Members User comments on their Profile page
Send a message via ICQ to codex Send a message via AIM to codex Send a message via Yahoo to codex
Default Re: Call Me Crazy!!!

with a programming language


__________________
We're not just a forum, We are a community!
http://www.ustream.tv/channel/6-industries
avaliable 24/7 on AIM!



  #3  
Old 12-02-2008
AW_3_3's Avatar
Hardware Techie
My PC
 
Join Date: Nov 2006
Location: Ballston Spa, New York
Posts: 2,001
PC Experience: PC Guru
AW_3_3 - See this Members User comments on their Profile pageAW_3_3 - See this Members User comments on their Profile pageAW_3_3 - See this Members User comments on their Profile pageAW_3_3 - See this Members User comments on their Profile pageAW_3_3 - See this Members User comments on their Profile pageAW_3_3 - See this Members User comments on their Profile pageAW_3_3 - See this Members User comments on their Profile pageAW_3_3 - See this Members User comments on their Profile pageAW_3_3 - See this Members User comments on their Profile pageAW_3_3 - See this Members User comments on their Profile pageAW_3_3 - See this Members User comments on their Profile page
Send a message via AIM to AW_3_3 Send a message via Skype™ to AW_3_3
Default Re: Call Me Crazy!!!

Hundreds of technicians, knowledge of programming languages, primarily Visual C++, C++, x86... lol


__________________

Prework
SIW
Speedfan
Everest Home
--I specialize in building PCs--

Don't forget to rate posts if you have any comments!

  #4  
Old 12-02-2008
codex's Avatar
Tech Member
My PC
 
Join Date: Nov 2008
Location: south carolina
Posts: 368
PC Experience: Very Experienced
codex - See this Members User comments on their Profile pagecodex - See this Members User comments on their Profile pagecodex - See this Members User comments on their Profile pagecodex - See this Members User comments on their Profile pagecodex - See this Members User comments on their Profile pagecodex - See this Members User comments on their Profile pagecodex - See this Members User comments on their Profile pagecodex - See this Members User comments on their Profile pagecodex - See this Members User comments on their Profile pagecodex - See this Members User comments on their Profile pagecodex - See this Members User comments on their Profile page
Send a message via ICQ to codex Send a message via AIM to codex Send a message via Yahoo to codex
Default Re: Call Me Crazy!!!

maybe he means install an OS ?


__________________
We're not just a forum, We are a community!
http://www.ustream.tv/channel/6-industries
avaliable 24/7 on AIM!



  #5  
Old 12-02-2008
Pgh's Avatar
Pgh Male Pgh is offline
Moderator
My PC
 
Join Date: Jul 2006
Location: UK, South-East
Posts: 1,018
PC Experience: Some Experience
Pgh - See this Members User comments on their Profile pagePgh - See this Members User comments on their Profile pagePgh - See this Members User comments on their Profile pagePgh - See this Members User comments on their Profile pagePgh - See this Members User comments on their Profile pagePgh - See this Members User comments on their Profile pagePgh - See this Members User comments on their Profile pagePgh - See this Members User comments on their Profile pagePgh - See this Members User comments on their Profile pagePgh - See this Members User comments on their Profile pagePgh - See this Members User comments on their Profile page
Default Re: Call Me Crazy!!!

If you wish to base it on Linux, the LFS (Linux From Scratch) project allows you to build your own custom Linux distribution from source: Welcome to Linux From Scratch!


  #6  
Old 2 Weeks Ago
Bronze Member
 
Join Date: Dec 2008
Posts: 3
PC Experience: Computer programmer since 1984, Linux God, Computer professional
direct4 - See this Members User comments on their Profile page
Default Re: Call Me Crazy!!!

Knowledge of Assembly code is very useful-- in fact, required. You will need to write code to directly interface with the hardware, and build standard function calls that can be used by other programs. Later you can write I/O functions and then your own ANSI C library functions to make your programming life easier.

But, the basic things you need to do are:
  • Method for ogranizning data on a disk (file system)
  • Method for reading/writing files
  • Functions for displaying text to the screen
  • Functions for handling allocating memory to other programs
  • Functions to run and exit a program
  • Write a command interpreter so that someone at a keyboard can issue commands to the OS to execute programs, and manage files on the disk (a very basic one is COMMAND.COM, which you can learn more about at Guides:Shells/COMMAND.COM-CMD.EXE - CoderGuide)
  • You'll also need to write a boot loader to load your operating system when the system boots. On PCs, this is a single sector on a floppy or hard disk (512 bytes), and yes, written entirely in assembly code.
And that's pretty much it.

I was about to write my own OS back when I was 16, but then I discovered something called Linux, and figured, what's the point? Ah well. If you'll be writing a OS for the PC, you'll need the BIOS interrupt list when in real mode. Eventually that'll be put into coderguide.com, but other things are more important at the moment.

So.. what's 80x86 (Intel/PCs in real mode) assembly code? It looks a bit like this:

Code:
xor ax,ax
mov ah, 13h
int 10h
mov cx, 64000
mov ds, a000
xor ax,ax
:label
mov [ds:cx], al
inc al
loopz label
My assembler is a little rusty, but, that should write a bunch of color bands to a 320x200 VGA (256 color) screen. And then crash because I didn't put the code in there at the end to return to the operating system .

My loop and memory reference code may be wrong. I can't remember which/if certain registers were not allowed in memory references.


  #7  
Old 4 Days Ago
Jelly Bean's Avatar
Moderation Team Leader
My PC
 
Join Date: Feb 2008
Location: Swansea
Posts: 9,041
PC Experience: I Try My Best.
Jelly Bean - See this Members User comments on their Profile pageJelly Bean - See this Members User comments on their Profile pageJelly Bean - See this Members User comments on their Profile pageJelly Bean - See this Members User comments on their Profile pageJelly Bean - See this Members User comments on their Profile pageJelly Bean - See this Members User comments on their Profile pageJelly Bean - See this Members User comments on their Profile pageJelly Bean - See this Members User comments on their Profile pageJelly Bean - See this Members User comments on their Profile pageJelly Bean - See this Members User comments on their Profile pageJelly Bean - See this Members User comments on their Profile page
Send a message via MSN to Jelly Bean Send a message via Yahoo to Jelly Bean Send a message via Skype™ to Jelly Bean
Default Re: Call Me Crazy!!!

Hello there.

Is this question/issue Resolved/Answered/Fixed?

Do you still require help?

If you do please post back.

Thankyou.

JB.


__________________
It is all in the hardware..........................................
Sources:
Microsoft Home Page /Seagate Home Page /Petri Home Page

PCHF Rules / Home Page / Prework /Windows Vista Home Page / XBOX360 / Test your Internet Speed

I Can Fix This  I Need Help  

Bookmarks

Tags
answered, call, crazy, pending

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

All times are GMT +1. The time now is 11:52 AM.
Powered by vBulletin
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC7
All Graphics & Content Copyright © 2004-2009 - PC Help Forum.com

Back to Top