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

Discussions on more advanced topics such as monolithic vs micro-kernels, transactional memory models, and paging vs segmentation should go here. Use this forum to expand and improve the wiki!
Locked
lopidas
Member
Member
Posts: 65
Joined: Sun May 26, 2013 10:12 am

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

Post by lopidas »

How to do it?
On both.
User avatar
sortie
Member
Member
Posts: 931
Joined: Wed Mar 21, 2012 3:01 pm
Libera.chat IRC: sortie

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

Post 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.
lopidas
Member
Member
Posts: 65
Joined: Sun May 26, 2013 10:12 am

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

Post by lopidas »

Does that applies to custom bootloader too?
lopidas
Member
Member
Posts: 65
Joined: Sun May 26, 2013 10:12 am

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

Post 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?
User avatar
sortie
Member
Member
Posts: 931
Joined: Wed Mar 21, 2012 3:01 pm
Libera.chat IRC: sortie

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

Post 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.
lopidas
Member
Member
Posts: 65
Joined: Sun May 26, 2013 10:12 am

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

Post by lopidas »

Sorry, I am curious and
I am sorry I messed up two topics.
lopidas
Member
Member
Posts: 65
Joined: Sun May 26, 2013 10:12 am

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

Post by lopidas »

Locked