TITLE MASM Template(main.asm)
INCLUDE Irvine32.inc
.data
retazec BYTE 20 dup(? )
.code
main PROC
call Clrscr
mov edx, offset retazec
mov ecx, 20
call ReadString
mov edx, offset retazec
mov ebx, 0
Cyklus : mov edi, ebx
mov al, [edx + edi]
cmp al, 0
je Koniec
cmp al, 97
jne Inkrementuj
inc edi
mov al, [edx + edi]
cmp al, 0
je Koniec
cmp al, 115
jne Inkrementuj
inc edi
mov al, [edx + edi]
cmp al, 0
je Koniec
cmp al, 102
jne Inkrementuj
mov retazec[edi], 42
dec edi
mov retazec[edi], 42
dec edi
mov retazec[edi], 42
Inkrementuj : inc ebx
jmp Cyklus
Koniec : mov edx, offset retazec
call WriteString
call ReadChar
exit
main ENDP
END main