Sum = 0;
for X = 1 to 10 do
Sum = Sum + X;
The following code...
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
Answers: 1
Computers and Technology, 22.06.2019 20:00, ksanchez2100
Need asap assignment directions: think of an organization (business, religious institution, volunteer organization, sports team) with which you have been involved. imagine outfitting it with an it infrastructure. prepare a plan for what you would do to support outfitting it. draw a map of a network connecting all the individuals, give them pcs and printers, and lay out the design as best you can. the purpose is to begin working with these concepts, not to build a perfect network.
Answers: 2
Computers and Technology, 23.06.2019 20:30, cristalcastro901
If an appliance consumes 500 w of power and is left on for 5 hours, how much energy is used over this time period? a. 2.5 kwh b. 25 kwh c. 250 kwh d. 2500 kwh
Answers: 1
Mathematics, 04.12.2021 22:40
Spanish, 04.12.2021 22:40
Mathematics, 04.12.2021 22:40
Mathematics, 04.12.2021 22:40