answersLogoWhite

0


Best Answer

Mov ax,data

mov ds,ax

mov dl,05h

up2: lea si,ser1

mov cl,05h

up1: mov al,ds:[si]

mov ah,al

inc si

cmp al,ds:[si]

jc down

mov ah,ds:[si]

mov ds:[si],al

dec si

mov ds:[si],ah

inc si

down:dec cl

jnz up1

dec dl

jnz up2

int 3h

User Avatar

Wiki User

βˆ™ 12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: 8086 program to arrange a string of bytes in ascending order?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

How can you convert byte to string in java?

To convert byte to String in java use the String(bytes, UTF-8); //example for one encoding type. You must know the special encoding that contains a variety of characters.


What is the function in java to find the size of given variable?

Dependion on the variable there are several methods to do it, this can only be applied to primitive types and arrays, for an array its the "name_of_array.length", for the arraylist this change just a little, it would be like "name_of_array_list.size()", for an int, double, float, long, byte, it would be like "name_of_variable.LENGTH" this is a public variable so you dont need a get, an finally for the String there is a method "name_of_string.length()" this would return the size of this String


What is an adequate measure of the size of input for a program that requires two integer numbers n?

Not sure what you mean; if you want to measure the "input size" in bytes, that would probably be 8 bytes, since integers typically use 4 bytes.


How many bytes does an Boolean take in a c program?

There is no boolean in C, we usually use int/short/char to store logical values.


Memory occupied by object in Java?

An object in Java may contain a small amount or a large amount of memory - it depends almost entirely on what you store in it. For example, a String is an object. Now, you can have a String that contains 10 characters - that object will contain 20 bytes (2 bytes per character - characters are stored as Unicode), plus a small amount of overhead. The amount of overhead may vary, depending on the specific Java implementation. Another String, which contains 100 million characters, will be stored using 200 million bytes (plus a small amount of overhead). I believe the JVM may also round the space used up by an object up - for example, to the closest power of two. But once again, this is implementation-specific.

Related questions

Is there a list of ascending computer bytes?

yah... but i dont know them


How many bytes does a string occupy in c?

Depends on several factors:number of bytes per character: 1 to 4 depending on which alphabet and character encoding you use. 1 byte per character for US-ASCII and the most common Western Europe encodings.length of the string: bytes per character times number of charactersprogramming language: in C, the string takes up no more space than the characters do. In many other languages, there is an additional fixed overhead for the string object itself. For example in Java, a string takes 2-4 bytes plus the space taken by the characters.


How many bytes are required to store a character string?

about eight bits, which is equal to one byte


How do you culculate number of bytes in a characteristic?

The answer depends on the maxmum value or the longest [text] string that the characteristic can take.


How can you convert byte to string in java?

To convert byte to String in java use the String(bytes, UTF-8); //example for one encoding type. You must know the special encoding that contains a variety of characters.


What is program segment prefix in msdos?

The program segment prefix (PSP) in MSDOS is the first 256 bytes of memory allocated by the command interpreter to load and run a program. The program itself is loaded next. The first 128 bytes of the PSP contains various structures and pointers. The second 128 bytes of the PSP initially contain the command line, and is then available as the default disk buffer for subsequent I/O.


A string of 16 bits is called?

A word. It equals 2 bytes. A Long Word is 32 bits long.


What is MSCam532exe?

You will see MSCams32.exe if you have any of Microsoft Life Cam products installed on your PC. Below is some extra information (from link in related links)MSCamS32.exe is located in a subfolder of "C:\Program Files". Known file sizes on Windows XP are 271,720 bytes (35% of all occurrence), 207,664 bytes, 240,408 bytes, 161,632 bytes, 164,896 bytes, 139,632 bytes, 139,120 bytes, 156,704 bytes. The program is not visible. The file is digitally signed. The file is not a Windows core file. Therefore the technical security rating is 37% dangerous, however also read the users reviews.


What is the maximum number of icmp packet can be captured?

The limit on the number of packets that a capture program can save usually depends on how much disk space you have, since that is where the captured packets will be stored.


What is the function in java to find the size of given variable?

Dependion on the variable there are several methods to do it, this can only be applied to primitive types and arrays, for an array its the "name_of_array.length", for the arraylist this change just a little, it would be like "name_of_array_list.size()", for an int, double, float, long, byte, it would be like "name_of_variable.LENGTH" this is a public variable so you dont need a get, an finally for the String there is a method "name_of_string.length()" this would return the size of this String


What is an adequate measure of the size of input for a program that requires two integer numbers n?

Not sure what you mean; if you want to measure the "input size" in bytes, that would probably be 8 bytes, since integers typically use 4 bytes.


Does a sentence requires one byte storage?

A sentence is known as a string in computing, and strings normally take up several bytes of storage.