Sign In
Ask Question
Evan Simon
Computers & Technology
16 April, 18:19
Write an ALP to find cube of N 8-bit numbers in an array using 8086
+3
Answers (
1
)
Pierce Gentry
16 April, 18:25
0
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
Comment
Complaint
Link
Know the Answer?
Answer
New Questions in Computers & Technology
Which are ways that humans can lower biodiversity as they use the environment? CHECK ALL THAT APPLY
Answers (2)
The opera station broadcasts at 90.5 MHz and the rock nroll station at 07.1 MHz which station's signal has waves with longer wavelengths and which one has higher energy
Answers (1)
Solve 3 q - 5 = 13 for q. q =
Answers (1)
Beth files a suit against Cruise Line, Inc. Cruise responds that it appears from the pleadings that the parties do not dispute the facts and the only question is how the law applies to those facts.
Answers (1)
Which of the following was best compares an armistice to a peace treaty
Answers (1)
Aqueous hydrochloric acid will react with solid sodium hydroxide to produce aqueous sodium chloride and liquid water. Suppose 34. g of hydrochloric acid is mixed with 9.30 g of sodium hydroxide.
Answers (1)
How did the colonist use it to get more support for their rebellion
Answers (2)
Is 7/8 greater than 3/4
Answers (2)
What is the molar mass of C2H6O
Answers (1)
True Flight Golf manufacturers a popular shaft for golf clubs. Its trade secret is a unique process for weaving high-tension wire into the center of the shaft such that energy is accumulated during the swing and released at impact.
Answers (1)
Home
»
⭐️ Computers & Technology
» Write an ALP to find cube of N 8-bit numbers in an array using 8086
Sign In
Sign Up
Forgot Password?