answersLogoWhite

0


Best Answer

program:

assume cs:code,ds:data

code segment

mov ax,data

mov ds,ax

mov cl,count

mov si,offset str1

mov di,0003h

back:mov al,[si]

xchg [di],al

mov [si],al

inc si

dec di

dec cl

jnz back

hlt

code ends

data segment

str1 db 01h,02h,03h,04h

count equ 02h

data ends

end

result:

input: str1 (ds:0000h) = 01h,02h,03h,04h

output: str1 (ds:0000h) = 04h,03h,02h,01h

User Avatar

Wiki User

11y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

12y ago

To be honest, i don't have a clue, just go play a game or something, sado

This answer is:
User Avatar

User Avatar

Wiki User

10y ago

asdsa

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you reverse a string in assembly language?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Definition of buffer in assembly language?

its just like a string of c++


Assembly language program for string concatenation using 8086 microprocessor?

write program to concatenating two sting in 8086 assembly language


How do you reverse every word in a filter with assembly language in Linux 64-bit?

To reverse every word in a filter with assembly language in Linux 64-bit is easy. All you have to do is assemble the language file in an object file.


What is the use of Reverse String in C program?

The use of the reverse string in C program is used to reverse the letters in the string. An example would be reverse me would be reversed to em esrever.


How do you convert a number that consist of alphabet and number in reverse order?

To reverse a number, first convert the number to a string, then reverse the string. Given your number consists of alphanumeric characters, the number must already be a string so simply reverse the string: #include<string> using std::string; string reverse (const string& s) { string str {}; for (auto c : s) str.insert (str.begin(), c); return str; } int main () { std::cout << "Enter a number: "; string s {}; std::cin >> s; std::cout << "The number in reverse is: " << reverse (s); }


How do you create a string and reverse a string in vb?

gov


Could you write a assembly language program in tasm To check whether a given number present in a sequence of given memory location containing the string to be checked in 8086?

8086 assembly language program to check wether given number is perfect or not


How do you reverse a string in PHP?

A predefined function can reverse a string as shown below:echo strrev('pizza'); // outputs: azzip


Is assembly test also known as string test?

Yes....String Test=application Integration test=assembly test.


How do you write string in reverse through the HTML tags?

Not possible through html. Use php strrev function. For eg:


Flow chart to reverse digits of numbers?

ALGORITHM REVERSEINPUT (string)"STRINGLENGTH() would be a function that returns the lenght of the string"FOR (i = STRINGLENGTH(string); i >= 0; i--) BEGINDISPAY (string[i])END FOREND REVERSE


Reverse of a string without using string handling function?

shashi