Page 1 of 1

How to build OS from assembler to ISO on Windows/Linux?

Posted: Sat Jun 01, 2013 8:33 am
by lopidas
How to do it?
On both.

Re: How to build OS from assembler to ISO on Windows/Linux?

Posted: Sat Jun 01, 2013 8:43 am
by sortie
Please read the big text near the top of the page that says "The OSDev.org Wiki - Got a question? Search this first!" and then click on it and follow the instructions on the wiki.

Edit: I can see you already have visited the wiki. In that case you should read it. There is a bare bones article, if you strip out the C part (but still use a cross-binutils), then you have a protected mode OS in assembler.

Re: How to build OS from assembler to ISO on Windows/Linux?

Posted: Sat Jun 01, 2013 8:53 am
by lopidas
Does that applies to custom bootloader too?

Re: How to build OS from assembler to ISO on Windows/Linux?

Posted: Sat Jun 01, 2013 9:34 am
by lopidas
My code:

.code16

mov ah, 02h
mov al, 1
mov ch, 0
mov cl, 0
mov dh, 0
mov dl, 0
mov bx, 0x1000
mov es, bx
mov bx, 0x00
int 0x13
jmp 0x1000:0x00

will this execute code start of first sector?

Re: How to build OS from assembler to ISO on Windows/Linux?

Posted: Sat Jun 01, 2013 9:51 am
by sortie
Please, read the wiki, it clearly states that the bare bones article gives you a multiboot ELF kernel loaded with GRUB, an existing bootloader. If you wanted help with a custom bootloader, you should have said that up front.

Please stop what you are doing and read the classic http://www.catb.org/esr/faqs/smart-questions.html article. It will help you help us help you.

But, seriously, STFW.

Re: How to build OS from assembler to ISO on Windows/Linux?

Posted: Sat Jun 01, 2013 9:52 am
by lopidas
Sorry, I am curious and
I am sorry I messed up two topics.

Re: How to build OS from assembler to ISO on Windows/Linux?

Posted: Sat Jun 01, 2013 10:23 am
by lopidas