Question: * * You are to write an IAS program to compute the results of the following equation. Y = 1 + 2 + . .

** You are to write an IAS program to compute the results of the following equation.
Y =1+2+...+N
Assume that the computation does not result in an arithmetic overflow and that Y and N are positive integers with N>=1. Note: The IAS did not have assembly language, only machine language.
(a) Use the equation Y = N(N+1)/2 when writing the IAS program.
(b) Do it the hard way, without using the equation from part (a).
** Given the memory contents of the IAS computer shown below,
Address Contents
08A 010FA210FB
08B 010FA0F08D
08C 020FA210FB
show the assembly language code for the program, starting at address 08A.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!