Generate your own proc abs which receives a parameter in


Need help with the following assembly language problem

Generate an assembly program by completing the following tasks:

  • generate your own PROC ABS which receives a parameter in registerebx, and returns the absolute value of the parameter in registereax;
  • define an array of 20 signed double words (integers), namelyarrayW,with initial values you choose (for testing);
  • use a loop by which all the elements inarrayWare visited; procedure ABS is called on each element; and thearrayWelements are replaced in memory with their absolute values.

If you test your program with arrayW: 3, -2, 5, 7, 2, 9, -11, 32, -19, 18, 17, 15, -5, 2, 3, 1, -21, 27,-29, 20,

then arrayW will be replaced in memory by 3, 2, 5, 7, 2, 9, -11, 32, 19, 18, 17, 15, 5, 2, 3, 1, 21, 27,29, 20.

Solution Preview :

Prepared by a verified Expert
Business Economics: Generate your own proc abs which receives a parameter in
Reference No:- TGS02744900

Now Priced at $10 (50% Discount)

Recommended (98%)

Rated (4.3/5)