������� �� ���������� (ASM)
 

��������� � �������� - ����� �������� � ������

������:
���� ������, ��������� �� ����, ����������� ��������������� (����� ��� �����������). ���������� ���������� ����, ������� �������� ����� ��� ����� "W".

�����:
� ���������� ��� ���������, �������� ���� ������.
.model tiny
.code 
org 100h
start:

 lea si, s 
 cld
 xor dx, dx ;������� ����
@@1:
 xor cx, cx ;������� www
@@next:
 lodsb
 or al, al ;0 - ������ ��������� ������
 je @@end

 cmp al, '_'
 je @@word
 cmp al, 'w'
 je @w
 cmp al, 'W'
 je @w
 jmp @@next
@w: 
 inc cx
 jmp @@next

@@word:
  cmp cx, 3
  je  @@3
  jmp @@1
@@3:
  inc dx
  jmp @@1

@@end:

 int 20h
s db 'dfgas__wwfw_wsdffww_ww_gfhw',0
end start

   �����
   ����������