os programmer

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
swadallail
Posts: 10
Joined: Tue Feb 09, 2016 4:24 am
Libera.chat IRC: swad-al-lail

os programmer

Post by swadallail »

hi Guys
I want an example of a simple bootloader loads the kernel into memory
and kernel will print anything
and put that in The flash that emulates HDD
size the flash 8GB
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: os programmer

Post by Combuster »

Don't make Beginner Mistakes and ask for code.
"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 ]
azblue
Member
Member
Posts: 147
Joined: Sat Feb 27, 2010 8:55 pm

Re: os programmer

Post by azblue »

swadallail wrote:hi Guys
I want an example of a simple bootloader loads the kernel into memory

Code: Select all

setUpSegmentsMacro
mov eax, kernelStartSector
mov ebx, 8000h
mov ecx, sizeOfKernelInSectors
call loadSectors
jmp 0:8000h
;see RBIL int 13h for info on how to implement loadSectors
swadallail wrote: and kernel will print anything

Code: Select all

mov esi, anything
call printAnything
;see RBIL int 10h for info on how to implement a printChar function
swadallail wrote: and put that in The flash that emulates HDD
Covered in the wiki
swadallail wrote: size the flash 8GB
Irrelevant
Post Reply