1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
coldgirl [10]
3 years ago
13

Write an ALP to separate odd and even numbers from an array of N numbers; arrange odd

Engineering
1 answer:
Marta_Voda [28]3 years ago
6 0

Below is the program to separate odd and even numbers                                  

<u>Explanation</u>:

<u>L1:</u>

         mov ah,00

         mov al,[BX]

         mov dl,al

         div dh

         cmp ah,00

         je EVEN1

         mov [DI],dl

         add OddAdd,dl

         INC DI

         INC BX

         Loop L1

         jmp CAL

    <u>EVEN1:</u>

         mov [SI],dl

         add Even Add,dl

         INC SI

         INC BX

         Loop L1

    <u>CAL:   </u>  

         mov ax,0000

         mov bx,0000

         mov al,OddAdd

         mov bl,EvenAdd

         MOV  ax,4C00h

         int 21h

end

The above program separates odd and even numbers from the array using 8086 microprocessor. It has odd numbers in 2000h and even numbers in 3000h.

You might be interested in
Mining is an example of this type of business
luda_lava [24]

Answer:

Mining would go under Industry organization.

5 0
3 years ago
PLEASE HELP!!! ILL GIVE BRANLIEST *EXTRA POINTS* dont skip :((
zubka84 [21]

Answer:

Routine

Explanation:

Loop Structures — The Method Of Repeating Routines In Statements. Repetition of code are called loops, and they are defined as statements that execute lines of code (or routines) repeatedly according to conditions or iterations. ... Take for example a routine that must write as output the string “Hello” 40 times

6 0
3 years ago
Read 2 more answers
Calculate total hole mobility if the hole mobility due to lattice scattering is 50 cm2 /Vsec and the hole mobility due to ionize
Ad libitum [116K]

Answer:

The total hole mobility is 41.67 cm²/V s

Explanation:

Data given by the exercise:

hole mobility due to lattice scattering = ul = 50 cm²/V s

hole mobility due to ionized impurity = ui = 250 cm²/V s

The total mobility is equal:

\frac{1}{u} =\frac{1}{ul} +\frac{1}{ui} \\\frac{1}{u}=\frac{1}{50} +\frac{1}{250} \\u=41.67cm^{2} /Vs

5 0
3 years ago
Read 2 more answers
True or false <br> 19. Closed systems rely on feedback from outside of the system to operate.
Furkat [3]

Answer: True

Explanation: Closed loop relies on feedback from PNS to make modifications in the movement, open loop allows action in the absence of feedback, 2. ... Closed loop can change the initial commands, open loop can not change the initial commands.

6 0
2 years ago
Need help please????????!!!!!!
Alekssandra [29.7K]

Answer A the more traing the more you will know

Explanation:

4 0
3 years ago
Other questions:
  • For a heat pump, COP&lt;1. a) True b) False
    11·1 answer
  • The pressure in an automobile tire depends on thetemperature of the air in the tire. When the air temperature is25°C, the pressu
    11·1 answer
  • 3. Write down the total thermal resistance for a double-pipe heat exchanger. Show how to convert from total resistance to an ove
    12·2 answers
  • The value of the critical Reynolds number for the flow over a flat plate is 5 x10^5. The significance of the value is:
    13·1 answer
  • The manufacturer of a 1.5 V D flashlight battery says that the battery will deliver 9 mA for 40 continuous hours. During that ti
    11·1 answer
  • Air at 300 K and 100 kPa steadily flows into a hair dryer having electrical work input of 1500 W. Because of the size of the air
    6·2 answers
  • 6. What symptom will be exhibited on an engine equipped with a pneumatic governor system if the cooling fins
    14·1 answer
  • THIS IS NOT AN ACADEMIC QUESTION, but who was the bitter of 1987 in FNAF?
    6·2 answers
  • Calculate the percentage of recyclables in high socioeconomic localities.
    13·1 answer
  • In a medical lab, Sandrine is working to isolate one element from a sample of liquid material. She uses a centrifuge, a machine
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!