BITS 16 mov bl, 0xFA .repeat: in al, 0x60 cmp al, bl je .repeat mov bl, al mov ah, 0x0E int 0x10 jmp .repeat times 510-($-$$) db 0 dw 0xAA55