Vous êtes sur la page 1sur 2

data segment lcr equ 3FBh lsr equ 3FDh dll equ 3F8h dlm equ 3F9h rbr

equ 3F8H thr equ 3F8h data ends code segment assume cs:code, ds:data main: call init repeat: call isti9bel jmp repeat mov ah,4ch int 21h init proc mov al,80h mov dx,lcr out dx,al mov al,60h mov dx,DLL out dx,al mov al,0 mov dx,dlm out dx,al mov al,0Bh mov dx,lcr out dx,al ret endp init testr proc mov bl,0 mov dx,lsr in al,dx and al,1h cmp al,1h je finteste mov bl,1 fintestr: ret endp testr Isti9bel proc e4: call testr; cmp bl,1 jne e4; call SCOUT; mov dx,thr out dx,al ret endp isti9bel

SCOUT proc mov ah,06h int 21h ret endp SCOUT