answersLogoWhite

0


Best Answer

BinarySearch proc ;params: array (of integers), length, target

push ebp

mov ebp, esp

mov ebx, [ebp + 8]

mov ecx, [ebp + 12]

xor edx, edx

dec ecx

jmp LoopCond

LoopStart:

mov eax, edx

add eax, ecx

shr eax, 1

push ecx

mov ecx, [ebp + 16]

cmp [eax * 4 + ebx], ecx

pop ecx

je Exit

jl UpperHalf

mov ecx, eax

dec ecx

jmp LoopCond

UpperHalf:

mov edx, eax

inc edx

LoopCond:

cmp ecx, edx

jge LoopStart

mov eax, -1

Exit:

pop ebp

ret

BinarySearch endp

User Avatar

Wiki User

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

Wiki User

14y ago

Yes, assembler language program can do binary sorts.

This answer is:
User Avatar

User Avatar

Wiki User

12y ago

James

This answer is:
User Avatar

User Avatar

Wiki User

10y ago

danger

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Assembly language program to convert 8 bit binary to ascii code?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you convert binary to hexadecimal using assembly language?

In order to convert binary to hexadecimal using assembly language, the programmer must possess an understanding on boolean algebra or binary system in other words. A compiler is also needed to complete the program.


How do you convert from assembly to binary in c plus plus?

Use inline assembly instructions. Then compile your C++ program to produce the machine code.


Write a program in 8086 assembly language that accepts two input characters pack two characters in one word and store them in consecutive locating in a memory buffer The first address of buffer is 400?

develop and test an assembly language to convert a two digit BCD number to binary


What is the name of the translator used by Assembly Language?

Assembly language does not use a traditional translator; instead, it uses an assembler to convert its mnemonics into machine code. The assembler translates the assembly instructions into binary code that the computer's CPU can understand and execute.


What are the two types of machine language?

1- Binary language 2- Assembly Language


Implementation of binary search algorithm using ASM assembler in 8086?

Hi, I hope this is useful http://www.indiastudychannel.com/projects/2748-Assembly-language-program-for-Binary-search.aspx good luck!


What are two types of machines?

1- Binary language 2- Assembly Language


What the two types of machine?

1- Binary language 2- Assembly Language


How do you write a c program to convert binary to decimal by using while statement?

write a c++ program to convert binary number to decimal number by using while statement


Is Assembly-language programs are written using binary codes?

Assembly language allows the developer to have almost total control over what the sequence of instructions will be when a program executes. A compiler tries to translate a high level language such as C++ into a series of instructions, but a good assembly language programmer may be able to optimize the sequence when a compiler cannot. Primarily assembly language is used for speed and optimal machine code.


C program to receive floating point and convert it into binary?

scanf


Why is assembly language considered easier for humans to program than machine language?

Assembly is signficantly shorter and easier to remember than the equivilant machine instructions. Assembly instructions are human readable characters, for which a direct translation exists to the binary machine code instructions. Pseudo example: add <- assembly instruction 1010101010 <- machine instruction