cpu 8086 %define seg 0x060 org 0x7C00 - (seg << 4) init: cli mov ax, seg mov ss, ax mov ds, ax mov es, ax xor sp, sp .retry: mov bx, 7 mov ax, 0x0e2e int 0x10 mov ax, 0x0210 mov cx, 2 mov dh, 0 mov bx, 0x100 int 0x13 jc .retry jmp seg:0x100 times (0x1BE - ($-$$)) db 0 ; assumes 16 heads, 63 sectors per track ; image of 1.44 MB floppy starting on 2nd track part1: db 0x80 db 1, 1, 0 db 1 db 0xFF, 0xFF, 0xFF dd 63 dd 0xb40 times (0x1FE - ($-$$)) db 0 ; Boot signature sig: dw 0xAA55