Question: Write an assembly language code of the following C++ function. Consider all the integers of this procedure as unsigned DWORD in Assembly Language. Write

Write an assembly language code of the following C++ function. Consider all

Write an assembly language code of the following C++ function. Consider all the integers of this procedure as unsigned DWORD in Assembly Language. Write two types of Assembly code one using the CALL instruction and other with INVOKE instruction from the main body of Assembly Language. Use accumulator to return the values from functions. Show the output from main body. Paste the Output Screens of Assembly Language for both procedures. (14) int subtr (int x, int y) { int var1=10; int var2=50; int var4; var4 = var1 + var2; return var4 -(x + y); } void main() { int a = subtr (12, 10)

Step by Step Solution

3.25 Rating (160 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Solution Using Call Using Invoke INCLUDE IRVINE32INC DATA MSG1 BYTE ZAIBIS COAL ASSIGNMENT 4 0 MSG2 BYTE SUBTRACTION USING CALL0 MSG3 BYTE VALUE OF X 0 MSG4 BYTE VALUE OF Y 0 MSG5 BYTE CALLING THE SUB... View full answer

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 Programming Questions!