BITS 16 .repeat: mov ah, 0x00 int 0x16 cmp ah, 0x32 je .done jmp .repeat .done: mov al, 0x21 mov ah, 0x0E int 10h times 510-($-$$) db 0 dw 0xAA55