Ask your own question, for FREE!
Computer Science 19 Online
OpenStudy (anonymous):

@Diyadiya here is the code for reversing string

OpenStudy (anonymous):

.MODEL SMALL .STACK 100H .DATA msg DB 0AH,0DH,'=>is palindrome','$' msg2 DB 0AH,0DH,'=>is not palindrome','$' a DB ? .CODE MAIN PROC mov ah, 2h mov dl,'?' int 21h xor cx, cx mov ah, 1h int 21h mov a, al call palindrome exit: mov ah, 4ch int 21h MAIN ENDP palindrome proc while_: cmp al, 0dh je end_while push ax inc cx int 21h jmp while_ end_while: mov ah, 2h mov dl, 0dh int 21h mov dl, 0ah int 21h jcxz exit top: pop dx int 21h loop top cmp dl,a je print call print2 ret print: call print1 ret palindrome ENDP print1 proc mov ax,@DATA mov ds,ax mov dx,offset msg mov ah,09 int 21h ret print1 endp print2 proc mov ax,@DATA mov ds,ax mov dx,offset msg2 mov ah,09 int 21h ret print2 endp END MAIN

Parth (parthkohli):

I'd rather use this http://textmechanic.com/Reverse-Text-Generator.html

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!