Logo 
Search:

Assembly Language Forum

Ask Question   UnAnswered
Home » Forum » Assembly Language       RSS Feeds

Addition of two 4-element word arrays in decimal

  Asked By: Shika    Date: Nov 26    Category: Assembly Language    Views: 8011
  

Write an assembly language program that will

1) read in two 4-element word arrays A(0), A(1), A(2), A(3),

and B(0), B(1), B(2), B(3), in decimal

2) compute A(0) * B(0) + A(1) * B(1) + A(2) * B(2) + A(3) * B(3)

3) output the sum in decimal

4) repeat step 1 until a single <CR> is typed


An example of a program run is:

C/>PROG6
?-39,68,17,-42
?51,28,6,-31
01319
?-1,1,-1,1
?1,-1,1,-1
-00004
?

C/>

Share: 

 

No Answers Found. Be the First, To Post Answer.

 
Didn't find what you were looking for? Find more on Addition of two 4-element word arrays in decimal Or get search suggestion and latest updates.




Tagged: