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
Nonamiya [84]
3 years ago
11

Write an ALP to find cube of N 8-bit numbers in an array using 8086

Computers and Technology
1 answer:
alisha [4.7K]3 years ago
8 0

Answer:

100 MOV Si, 500

101 MOV CL [Si]

102 MOV CH,00

103 INC SI

104 MOV AL,[SI]

105 A MOV BL, AL

105 C MUL AL

105 E MUL BL

106 MOV [SI], AL

107 INC SI

108 LOOP 104

109 HLT

The above is the required ALP program.

Explanation:

Step1: Sets the SI value to 500

Step 2: Loads the data from the SI offset to the CL register

Step 3: Increase the SI value by 1

Step 4: Move the value of the register from AL to BL

AL is the single 8-bit register

Step 5: Multiply the AL by AL

Step 6: Multiply the value of the register AL by BL

Step 7: The value of the AL is stored at the SI offset.

Step 8: Now the value of the SI is increased by 1.

LOOP 104: The program now jumps to the address 104 if the CX=CX -1 and CX is not 0.

HLT: means stop

You might be interested in
A programmer wrote the program below. The program uses a list of numbers called numList. The program is intended to display the
Nezavi [6.7K]

Answer:

The conclusion is incorrect; using the test case [0, 1, 4, 5] is not sufficient to conclude the program is correct.

Explanation:

From the code snippet given, we cannot conclude that the test case is sufficient.

One of the reasons is because the test case contains only integer variables.

Tests need to be carried out for other large and floating points numerical data types such as decimal, double, float, etc. except that when it's known that the inputs will be of type integer only else, we can't rush into any conclusion about the code snippet

Another reason is that input are not gotten at runtime. Input gotten from runtime environment makes the program flexible enough.

Lastly, the array length of the array in the code segment is limited to 4. Flexible length needs to be tested before we can arrive at a reasonable conclusion.

8 0
4 years ago
Which graph or chart shows changes in the value of data?
yKpoI14uk [10]

Answer:

Bar graph and Pie chart

3 0
3 years ago
Read 2 more answers
A serial schedule:
Lina20 [59]

Answer:

B)

Explanation:

Is alwayd sorted sequentially in aceding order by transaction ID

6 0
3 years ago
__________ is the backbone of a computer, connecting all of its components including the central processing unit (CPU) and prima
Tems11 [23]
It’s D. The microprocessor
5 0
3 years ago
Which of the following is needed if a computer with the IP address 172.31.210.10/24 wants to communicate with a computer with th
ozzi

Answer:

The answer is <em>since both ip addresses are not within the same subnet,   only router can be used for the two computers to communicate together.</em>

Explanation:

From the statements in the question, since  the two ip addresses are not on same subnet value i.e 172.31.210.10/24 and 172.31.209.122/24 then both computers cannot communicate except a router is used for network connections for the two different subnets as they are not on the same network.

Explanation:

4 0
4 years ago
Other questions:
  • If you turn your volume to loud on u'r headphones can it break the sound quality of the speaker?
    9·2 answers
  • Explain free space allocation?
    9·1 answer
  • The World Wide Web is a program that allows you to search for information on the Internet.
    11·1 answer
  • In __________ write, the data are stored in the cache, and control returns to the caller. Select one: a. a synchronous b. a buff
    8·1 answer
  • A ____ is a synonym for a virtualization application.
    5·1 answer
  • You cannot legally install macOS on a PC that originally came with Windows<br> True or false
    13·2 answers
  • What is an example of CT SO?
    9·1 answer
  • If we assume the modern view of existential import, why is the following syllogism invalid? No computer is made of clay. All com
    15·1 answer
  • content from other sources can be embedded into it linked to a photoshop document from another source
    14·1 answer
  • Suppose Uber was considering a new algorithm to recommend ride destinations in the app. Which type of research strategy should t
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!