"; Bootloader\n"
"; BIOS boots in 16-bit mode\n"
"; The program is waiting for loading at 0x7c00\n"
"bits 16\n"
"org 0x7c00\n"
"\n"
"section .text\n"
"\n"
"; Entry point\n"
"_start:\n"
" ; Loading kernel\n"
" mov bx, 0x1000 ; offset. The kernel is loaded at this address\n"
" mov ah, 0x02 ; Int 13h/AH=2 = Read Sectors From Drive\n"
" mov al, 0x01 ; Sectors to read\n"
" mov ch, 0x00 ; cylinder\n"
" mov cl, 0x02 ; Sector to read (start)\n"
" mov dh, 0x00 ; Head\n"
"\n"
" int 13h\n"
"\n"
" popf\n"
" jmp 0x0:0x1000\n"
"\n"
"\n"
"; Bringing the file to a size of 510 bytes\n"
"times 510-($-$$) db 0\n"
"; Boot signature\n"
"; On boot BIOS reads the last 2 bytes of the first sector, if it is 0xAA55 it loads it\n"
"dw 0xAA55";
{props.children.map((child, index) =>
<div key={index} ref={items.current[index]}>
{child}
</div>
)}
struct ParsedConfig {
std::vector<std::string> c_files, cpp_files, asm_files;
};