.code
>
> start:
> mov ax,03h
> int 10h
> mov ax,seg msg1
> mov ds,ax
> mov dx,offset msg1
> mov ah,09h
> int 21h
> mov si,offset str
> read:
> mov ah,01h
> int 21h
> cmp al,0dh
> je next
> mov [si],al
> inc si
> inc count
> jmp read
> next:
> mov di,offset str
> mov al,count
> mov cl,al
> mov ch,00h
> dec si
> check:
> mov al,[si]
> cmp al,[di]
> jne nt
> dec si
> inc di
> loop check
> mov ax,seg msg2
> mov ah,09h
> int 21h
> jmp exit
> nt:
> mov ax,seg msg3
> mov ds,ax
> mov dx,offset msg3
> mov ah,09h
> int 21h
> exit:
> mov ax,4c00h
> int 21h
> END start
이 문자열이 회문 또는 not.msg1은 '문자열을 입력'되어 있는지 여부를 확인하기위한 8086 MASM 코드의 일부입니다, MSG2은 '문자열이 회문한다', MSG3은 문자열입니다 '입니다 아니 palinrome ' 'cmp 알, 0dh '이 코드에서 무엇을 수행합니까?8086 MASM 프로그램이
Palindrome-checking 또는이 코드가 무엇이든간에 나는 20 세 이상이라고 느낍니다. –