Take the mid value of the no. of inputs. If the key is greater than the mid value then add the mid value and the last value; then divide by two. Again check the middle value for the key and keep repeating this until you find the key.
If key is smaller than the mid value. Add the first value to the mid value and divide by two. You will find the new mid value to compare and check for the key. Loop it until you get the key location.
Hi, I hope this is useful http://www.indiastudychannel.com/projects/2748-Assembly-language-program-for-Binary-search.aspx good luck!
assembly language program for sorting an array using 8086 microprocessor.
write program to concatenating two sting in 8086 assembly language
Which microprocessor accepts the program written for 8086 without any changes?
You need an 8086 assembly language pencil.
P (parity)is the count of '1's in the last 8 bits of any binary number expressed as even or odd. Logic 0 for odd parity; logic 1 for even parity.-if a number contains three binary one bits, it has odd parity-if a number contains no one bits, it has even parity
Breaking the sequence of program
sdfsdfsfsggbcvbg
No. They have a different instruction set. However, the processors are sufficiently similar that an 8086 assembler could assemble an 8085 program, given appropriate constants and macros. Some things, however, such as RIM, SIM, RST, etc. do not have equivalents in the 8086.
How to write a program for mouse in microprocessor?
8086 assembly language program to check wether given number is perfect or not
In 8085 program counter stores the address of the next instruction which is to be fecthed.same function is performed by instruction pointer in 8086.