Quantcast

A community for students. Sign up today!

Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

annas

  • 2 years ago

@Diyadiya here is the code for reversing string

  • This Question is Closed
  1. annas
    • 2 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
    • 2 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.

    Search OpenStudy
    • Attachments:

Ask your own question

Ask a Question
Find more explanations on OpenStudy

Your question is ready. Sign up for free to start getting answers.

spraguer (Moderator)
5 → View Detailed Profile

is replying to Can someone tell me what button the professor is hitting...

23

  • Teamwork 19 Teammate
  • Problem Solving 19 Hero
  • You have blocked this person.
  • ✔ You're a fan Checking fan status...

Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.

This is the testimonial you wrote.
You haven't written a testimonial for Owlfred.