org 0x7c00 mov si,msg l: lodsb or al,al jz end mov ah,0x0e xor bx,bx int 0x10 jmp l end: mov ax,0x0050 mov es,ax mov bx,0x0100 diskread: mov ah,0x02 ;func 2 mov al,0x01 ;read 1 sectors mov cx,0x2 ;sector 2 mov dx,0x0 ; head/drive int 0x13 jc diskread mov ax,0x0050 mov ds,ax mov es,ax mov ss,ax jmp 0x0050:0x0100 msg db "Loading Brian's OS...",13,10,0x0 times 512-$+$$-2 db 0 dw 0xAA55