Write a program to search a particular element from an array

Assignment Help Basic Computer Science
Reference no: EM13307342

These are two programs. I need someone to write Assembly Programming codes for these two programs. The Architecture is 8086. File format .asm and it should work in NASM.

1. Write a program to search a particular element from an array using binary search. If the element is found set AX to one and otherwise to zero. It needs to be sorted first. Code should do the sorting part and then same code implements binary search. Code should be generic, take
array elements and array size in memory.


2. Take two arrays in memory as input sets, and find;

a) union
b) intersection
c) difference
of these two sets and store the result sets in the memory.

 

Reference no: EM13307342

Questions Cloud

Write a recursive method that will calculate nth fibonacci : Fibonacci numbers are really fascinating and turn up in many unexpected places. They are also a good example of recursion. write a recursive method that will calculate the nth Fibonacci number. Now write a method that will do it iteratively.
The liberties that americans enjoy : September 17th is Constitution Day-- the anniversary of the day that the constitution was signed in 1787. The United States Constitution expressed in written word the ideals on which America was founded and the liberties that Americans enjoy.
What mass of sand can be put on the raft : A wooder raft has mass of 76kg. When empty it floats in water (density 1000 kg/m^3) with 40% of its volume submerged
Define advertising design in order to ensure better impact : The problem statement is, "To improve the advertising design in order to ensure better remembrance and impact on the audiences" Advertising is an essential element in the present day organizations
Write a program to search a particular element from an array : Write a program to search a particular element from an array using binary search. If the element is found set AX to one and otherwise to zero.
Determine what is the concentration of nox : At 100 km downwind (y=10m), what is the concentration of NOx in g/m^3. The wind speed at the top of the stack with a height of 100m is 6.5 m/s and an inversion layer of 750m Pressure air = 95kPa
Obtain the index of refraction of the material : A beam of light of wavelength 569 nm traveling in air is incident on a slab of transparent material. Find the index of refraction of the material
Majority or minority of todays strategic leaders : As a strategic leader, determine if you would feel ethically responsible for developing your firm’s human capital and state why. Discuss whether or not you believe your position is consistent with the majority or minority of today’s strategic leaders..
Sense of the sacredness of human life : What does the exercise tell you about your tendency to rely on deontological or utilitarian reasoning? What does it tell you about your sense of the sacredness of human life?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Constructs an internal linked representation of the tree

Output Your program must print a string representing the postorder traversal of the tree followed by a newline character.

  Change the hello program to print out your name

The contents of the file are given below. Name the file hello.c. #include #include int main() { printf("hello your-name-here\n"); exit(0)

  Create scenario making purchase or develop use case diagram

You are developing the requirements for an online shopping system. To place an order, a user connects to the system, searches to find items to purchase, selects one or more items, and supplies credit card information to pay for them.

  Explain how that characteristic may be exploited

Describe how top-down and bottom-up methods of threat/fault analysis can be used in identifying assets relevant to a scenario. You do not need to be exhaustive but do enough of the analysis to demonstrate you understand the processes.

  The progresses report

The progresses report is a chance to highlight and discuss any issues that you are having in meeting the project plans. Discuss any changes to the original proposal and if needed propose a renegotiate plan on what is to be achieved for the project in..

  Compare performance-one-level split-two-level unified cache

Compare the performance (using AMAT) of a one-level split cache and a two-level unified cache system. For the one-level split cache, suppose a hit takes 2 clock cycles.

  A one-variable quadratic expression

A one-variable quadratic expression is an arithmetic expression of the form ax^2+bx+c, where a,b, and cc are some fixed numbers (called the coefficients) and x is a variable that can take on different vaues

  Create class includes instance variables automatic propertie

Create a class called Employee that includes three pieces of information as either instance variables or automatic properties - a firstname (type string), a last name (type string) and a monthly salary (decimal)

  Draw the pipeline execution diagram for this code

Draw the pipeline execution diagram for this code, assuming full forwarding is used and the branch is determined in the EX stage. The pipeline always predicts branch taken.

  Register mapping and then any possible

First do the register mapping and then any possible instruction reordering. How many machine registers are used? Has there been any pipeline improvement?

  The board game scrabble

The board game Scrabble works by assigning points to wooden tiles that are marked with printed letters, and are arranged as interlocking words on a Scrabble board.

  Compare five technologies for in-home internet access

Compare and contrast at least five technologies which are readily available for in-home internet access. You must consider practical as well as technical differences in your comparison.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd