User:Glauxosdev/Tutorials/Bootloader: Difference between revisions

Content deleted Content added
Alexander (talk | contribs)
m fix minor typo in code comments
m Bootloader != Bootsector
Line 3:
==Take 0x01==
 
A bootloader is a [[Real Mode|real mode]] program that resides in the first sector of the disk; let it be on a hard disk or on a USB flash disk. The bootloaderBIOS mustloads beonly 512the bytesbootsector, longso withto thestart lastwe twohave only 512 bytes, beingunless 0x55we andload 0xAAmore sectors ourselves. ItThe bootsector is loaded at address 0x00007C00, so using [[Real Mode|real mode]] [[Segmentation|segmentation]] the address is translated to 0x0000:0x7C00 or 0x07C0:0x0000. So for a start we have this code:
 
<source lang="asm">