Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

annas

  • 3 years ago

@Diyadiya here is the code for reversing string

  • This Question is Closed
  1. annas
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 3

    .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

  2. ParthKohli
    • 3 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

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

  3. Not the answer you are looking for?
    Search for more explanations.

    • Attachments:

Ask your own question

Sign Up
Find more explanations on OpenStudy
Privacy Policy