Page 1 of 1

please help me

Posted: Sun Aug 23, 2009 9:35 am
by mustafa121
Hello,
I want to write my own os. I know C and i am learning Asm. But i don't know where i'll start. Please help me(i am sorry for spelling errors)

Re: please help me

Posted: Sun Aug 23, 2009 9:39 am
by Nathan
Hello Mustafa,
Here is a good list of resources to you: And here is an example of a simple OS written in Assembly(Nasm):

Code: Select all

[BITS 16]	 ; 16 bit code generation
[ORG 0x7C00]	 ; ORGin location is 7C00

main:
MOV BH, 00h
MOV BL, 07h
MOV AL, 1
MOV BH, 0
MOV BL, 0011_1011b
MOV CX, msg1end - msg1 ; calculate message size. 
MOV DL, 30
MOV DH, 0
PUSH CS
POP ES
MOV BP, msg1
MOV AH, 13h
INT 10h
JMP msg1end

msg1 DB "Hello, World!"

msg1end:
JMP $
; Boot things
TIMES 510-($-$$) DB 0	; Fill the rest of the sector with zeros
DW 0xAA55		; Boot signature
Hope this helped,
Nathan Paulino Campos

Re: please help me

Posted: Sun Aug 23, 2009 9:45 am
by mustafa121
thanks for answer

Re: please help me

Posted: Sun Aug 23, 2009 9:49 am
by Blue
And do not forget our wiki!
For a start look at Getting Started and Beginner Mistakes :)

Re: please help me

Posted: Sun Aug 23, 2009 9:52 am
by Nathan
Ok, here is the best and more explained tutorial to start: http://www.osdever.net/tutorials/hello_ ... ?the_id=85

With it that i've started!

Re: please help me

Posted: Sun Aug 23, 2009 6:20 pm
by pcmattman
Assuming you're ready to actually think about what you're doing and not just copy and paste, this tutorial will suffice (if you know C, like you say you do). Just note that the tutorial does have bugs and the code examples are not necessarily correct - you can't just copy & paste ;)

Also, the best place to start is our wiki. I don't think you'll find such a wealth of information in one place elsewhere.

Re: please help me

Posted: Sun Aug 23, 2009 6:37 pm
by neon
There are alot of tutorials that you can try... Clicky ;) (Sorry, had to post it)

Re: please help me

Posted: Sun Aug 23, 2009 6:57 pm
by Nathan
Another good resources: Read this http://forum.osdev.org/viewtopic.php?f=1&t=6989
Book Recommendations

Thanks!