http://git.dujemihanovic.i2p?p=nameless-os.git;a=blob;f=boot/x86/mbr.s;h=8089b2f27e244bbbe1aeecb1477f691d77152b77
search: re 8089b2f27e244bbbe1aeecb1477f691d77152b77 [nameless-os.git] / boot / x86 / mbr.s 1 ; x86 bootloader for nameless-os, MBR portion 2 3 bits 16 4 cpu 686 5 org 0x600 6 7 _start: 8 cli 9 ; set up segment registers 10 xor ax, ax 11 mov ds, ax 12 mov es, ax 13 mov ss, ax 14 mov sp, 0x7c00 ; just under the soon-to-be-loaded VBR, should be more than sufficient space 15 16 ; perform self-relocation 17 cld 18 mov si, 0x7c00 19 mov di, 0x600 20 mov cx, 0x100 ; 256 words = 512 bytes 21 rep movsw 22 ; some...