Sum = 0;
for X = 1 to 10 do
Sum = Sum + X;
The following code...
![subject](/tpl/images/cats/informatica.png)
Computers and Technology, 13.05.2020 18:57 Fireburntbudder
Sum = 0;
for X = 1 to 10 do
Sum = Sum + X;
The following code is meant to perform the above function in assembly. Please fix so that it it executable.
ORG 100
Load One /Load constant
Store X /Initialize loop control variable X
Loop, Load X /Load X
Subt Ten /Compare X to 10
SkipCond 000 /If AC<0 (X is less than 10), continue loop
Jump Endloop /If X is not less than 10, terminate loop
Load Sum
Add X /Add X to Sum
Store Sum /Store result in Sum
Load X
Add One /Increment X
Store X
Jump Loop
Endloop, Load Sum
Output /Print Sum
Halt /terminate program
Sum, Dec 0
X, Dec 0 /Storage for X
One, Dec 1 /The constant value 1
Ten, Dec 10 /The loop constant
END
![ansver](/tpl/images/cats/User.png)
Answers: 1
Another question on Computers and Technology
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 02:30
Three out of five seniors remain undecided about a college major at the end of their senior year.
Answers: 3
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 04:20
Which network media uses different regions of the electromagnetic spectrum to transmit signals through air? uses different regions of the electromagnetic spectrum to transmit signals through air.
Answers: 2
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 19:30
Of the following pieces of information in a document, for which would you most likely insert a mail merge field?
Answers: 3
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 20:30
Column a of irma’s spreadsheet contains titles for each row, but her document is too big and will be printed three pages across. she wants to be sure that every page will be understood. what can irma do to with this problem?
Answers: 3
You know the right answer?
Questions
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/himiya.png)
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/es.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 12.03.2021 23:10
![question](/tpl/images/cats/biologiya.png)
Biology, 12.03.2021 23:10
![question](/tpl/images/cats/mat.png)
Mathematics, 12.03.2021 23:10
![question](/tpl/images/cats/mat.png)
Mathematics, 12.03.2021 23:10
![question](/tpl/images/cats/fizika.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 12.03.2021 23:10
![question](/tpl/images/cats/mat.png)
Mathematics, 12.03.2021 23:10
![question](/tpl/images/cats/mat.png)
Mathematics, 12.03.2021 23:10
![question](/tpl/images/cats/en.png)
English, 12.03.2021 23:10
![question](/tpl/images/cats/biologiya.png)
![question](/tpl/images/cats/istoriya.png)
History, 12.03.2021 23:10
![question](/tpl/images/cats/himiya.png)
![question](/tpl/images/cats/biologiya.png)
![question](/tpl/images/cats/mkx.png)
Arts, 12.03.2021 23:10
![question](/tpl/images/cats/istoriya.png)
History, 12.03.2021 23:10