Question: a) Write a macro in assembly, tstMacro , to calculate the following formulas: res1 = ((wNum1 2 / 3) * num2) / num3 res2 =

a) Write a macro in assembly, tstMacro, to calculate the following formulas:

res1 = ((wNum12 / 3) * num2) / num3

res2 = [ ((num2*num3)/4) * (wNum12 / 2) ] / num2

res3 = ( wNum1 / num2 + num2 / num3 ) / 7

res4 = modulo [ ( wNum1 / num2 + num2 / num3 ) / 7 ]

The macro will be invoked as follows:

tstMacro wNum1, num2, num3, res1, res2, res3, res4

You may assume data is valid (i.e., no error checking). The variable wNum1 is a signed word sized integer. The variables represented by num2, num3, res1, res2, res3 are signed, double-word sized integers. You may define additional variables, but must show the declaration(s). Note, points will be deducted for poor or inefficient solutions.

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!