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
True or false It is legal to pass in Florida when approaching within 100 feet of or traversing any railroad crossing grade croea
Iteru [2.4K]
That is a false statement.
3 0
2 years ago
HELP PLEASE!!!!!!!!!!!
MAXImum [283]
C is your answers!!!!!$3&2)//
7 0
3 years ago
Read 2 more answers
HAPPINESS DISCUSSION
RideAnS [48]

Answer:

uh because life sucks o_<

8 0
2 years ago
Read 2 more answers
You have removed a very large, thick plate of steel (AISI 1010) from your heat treat oven and have placed it on a large insulate
Andreas93 [3]

Answer:

for got sorry

Explanation:

6 0
3 years ago
Semiconductor pn junction diode and zener diode quiz questions
suter [353]

1.) A semiconductor is a device whose conductivity lies between the conductivity of the conductors and the insulators.

2.) A Zener diode is a semiconductor device made of silicon that allows current to flow in both directions.

<h3>What is a semiconductor?</h3>

A semiconductor is a device whose conductivity lies between the conductivity of the conductors and the insulators.

Due to the inclusion of an impurity or temperature effects, a solid substance with conductivity between that of an insulator and that of most metals. Semiconductor devices, particularly silicon devices, are key components of most electronic circuits.

Zener diode:-

A Zener diode is a semiconductor device made of silicon that allows current to flow in both directions.

To know more about semiconductors follow

brainly.com/question/13800609

#SPJ4

7 0
2 years ago
Other questions:
  • Twenty-five wooden beams were ordered or a construction project. The sample mean and he sample standard deviation were measured
    6·1 answer
  • A pitfall cited in Section 1.10 is expecting to improve the overall performance of a computer by improving only one aspect of th
    6·1 answer
  • - Scrap tire management is primarily regulated at the
    14·2 answers
  • For a bronze alloy, the stress at which plastic deformation begins is 266 MPa and the modulus of elasticity is105 GPa.
    15·1 answer
  • An object at a vertical elevation of 20 m and a speed of 5 m/s decreases in elevation to an elevation of 1 m. At this location,
    15·1 answer
  • In science, a force is a push or a pull.<br> is it true or false ?
    5·1 answer
  • Marie and James are bubbling dry pure nitrogen (N2) through a tank of liquid water (H2O) containing ethane (C2H6). The vapor str
    5·1 answer
  • Can someone help me plz!!
    13·1 answer
  • An isothermal CSTR with a first order irreversible reaction A â&gt; B (and rA[mol/(ft3*min)] = - 0.5 CA) has a constant flow rat
    13·1 answer
  • How to comment other people
    9·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!