http://git.dujemihanovic.i2p?p=nameless-os.git;a=blob;f=boot.s;h=3a8adc70a9d275e2e17faa53e6772aee0289e36c;hb=d826097f3b032247dd0396f8cf64b2fa775cea68
search: re summary | shortlog | log | commit | commitdiff | tree history | raw | HEAD Read bytes from boot drive [nameless-os.git] / boot.s 1 bits 16 ; boot sectors run in real mode 2 org 7c00h ; boot sector is loaded at 0x7c00 3 4 _start 5 mov [boot_drive], dl ; BIOS sets dl to number of boot drive, we don't want to forget this 6 7 mov bp, 8000h ; Move the stack away 8 mov sp, bp 9 10 push cs 11 pop es 12 mov bx, 9000h ; Load at 0000:9000 13 mov dh, 2 ; Load 5 sectors 14...