Simple Boot Loader in Assembly
Terminal Commands: nasm boot1.asm -f bin -o boot1.bin dd if=boot1.bin bs=512 of=myhd.img qemu myhd.img Help for boot1.asm: 'INT 0x10' is a BIOS video interrupt. All video related calls are made through this interrupt. To use this interrupt, we need to set the values of some registers as follows. AL => With ASCII value of character to display AH => With 0x0E ; Teletype mode (This will tell bios that we want to print one character on screen) BL => With Text Attribute (This will be the fore ground and background color of character to be displayed. 0x07 in our case.) BH => With Page Number (0x00 for most of the cases) Once all the registers are filled with appropriate values, we can call interrupt. Implementation in Assembly [BITS 16] ...