.model small
.code
.486
org 100h
.startup
start:
mov si, offset input_buf
mov di, offset output_buf
cld
cicle:
lodsb
cmp al, 'ы'
jne m1
mov al, 'й'
stosb
mov al, 'и'
m1:
stosb
cmp al, '$'
jne cicle
mov ah, 9
mov dx, offset output_buf
int 21h
xor ax, ax
int 16h
ret
AH=09h
DS:DX 'фывопкдж'
input_buf db 'фываолдж', '$'
input_buf_len = $-input_buf
output_buf db input_buf_len * 2 dup (?)
end