DRAHM
Гость
|
|
« Ответ #2 : 17-03-2007 07:58 » |
|
Надо что бы например при появлени 1 на CTS вы полнилось это действие
mov ebx,offset massig//massig это масив в который заносится длина сигнала
mov ecx,1000 SSD:
mov dx,0x3FE in al,dx cmp al,15 jbe DDS dec ecx cmp ecx,1 jnbe SSD
jmp SERR DDS:
mov al,182 out 0x43,al mov ax,0xffff out 0x42,al mov al,ah out 0x42,al in al,0x61 or al, 1 out 0x61,al SSD1: mov dx,0x3FE in al,dx cmp al,15 jnbe DDS1 jmp SSD1 DDS1: mov al,128 out 0x43,al in al,0x42 mov dl,al in al,0x42 mov ah,al mov al,dl /////////
mov ecx,offset massig cmp ebx,ecx je RASS mov [ebx],ax add ebx,4
in al,0x61 dec al out 0x61,al /////////////////////////// mov al,182 out 0x43,al mov ax,0xffff out 0x42,al mov al,ah out 0x42,al in al,0x61 or al, 1 out 0x61,al mov ecx,100000 SSD2:
dec ecx mov dx,0x3FE in al,dx cmp al,15 jbe DDS2 cmp ecx,1 jnbe SSD2 mov al,128 out 0x43,al
in al,0x42 mov dl,al in al,0x42 mov ah,al mov al,dl
mov [ebx],ax add ebx,4 in al,0x61 dec al out 0x61,al /////////////////////////// jmp SERR DDS2: mov al,128 out 0x43,al
in al,0x42 mov dl,al in al,0x42 mov ah,al mov al,dl /// mov [ebx],ax add ebx,4 in al,0x61 dec al out 0x61,al mov ecx,offset massig add ecx,200 cmp ebx,ecx
/////////////////////////// jbe DDS jmp SERR RASS: cmp ax,62000 jnbe SSERR mov [ebx],ax add ebx,4
in al,0x61 dec al out 0x61,al /////////////////////////// mov al,182 out 0x43,al mov ax,0xffff out 0x42,al mov al,ah out 0x42,al in al,0x61 or al, 1 out 0x61,al mov ecx,100000 mov ecx,offset cv mov [ecx],1 jmp SSD2 SSERR: mov ecx,offset cv //cv=0 код не получен mov [ecx],0 SERR: ret
|