.model tiny .386 .code org 100h start: mov ah,0fh int 10h xor ah,ah int 10h push 0 pop es mov di,36 mov eax,es:[di] mov vector,eax cli mov word ptr es:[di],offset obs mov es:[38],cs sti mov dx,offset vector+4 int 27h obs: push ax push es in al,60h cmp al,16 jnz short dale push 0b800h pop es mov al,cs:[dato] inc al cmp al,3ah jnz short dobry mov al,30h dobry: mov byte ptr es:[0],al mov cs:[dato],al dale: pop es pop ax jmp dword ptr cs:vector dato db 30h vector dd ? end start