Question: This is x86 assembly language. Please help me finish the code! Also please don't use answers from another post. Goal: calculate the expression (num1+num2) -

This is x86 assembly language. Please help me finish the code! Also please don't use answers from another post.

Goal: calculate the expression (num1+num2) - (num3+num4) + 1

Requirements:This is x86 assembly language. Please help me finish the code! AlsoPlease let the results match the one in this picture:please don't use answers from another post. Goal: calculate the expression (num1+num2)

Important note: The program should be adding the array elements and data labels and then saving that value into the data label (ex. 1000h + 1 is saved in num1)

- Use the following settings: - 32-bit processor - protected mode and standard call convention - 4096-byte stack - ExitProcess prototype with a parameter - Create an array of 16-bit signed integers: 1000h, 2000h, 3000h, and 4000h. - Define data labels: num1, num2, num3, and num4 which are initialized with 1, 2, 4, and 8, respectively. - Define another uninitialized variable named total. - Add each array element value to each data label and store its sum in that variable. - Calculate the expression using some of the following directives, registers, and instructions: OFFSET, PTR, TYPE, ESI, EAX, AX, EBX, BX, MOV, ADD, SUB, and INC. - Save the result in total. - Place comments in your code where needed. - Run your program and verify the content of EAX for the correct result. EAX=007D3003EBX=0093400AECX=00A11005EDX=00A11005ESI=00A14000EDI=00A11005EIP=00A1107ESP=007DFB40EBP=007DFB4CEFL=00000206OV=0UP=0EI=1PL=0ZR=0AC=0PE=1CY=0 - Use the following settings: - 32-bit processor - protected mode and standard call convention - 4096-byte stack - ExitProcess prototype with a parameter - Create an array of 16-bit signed integers: 1000h, 2000h, 3000h, and 4000h. - Define data labels: num1, num2, num3, and num4 which are initialized with 1, 2, 4, and 8, respectively. - Define another uninitialized variable named total. - Add each array element value to each data label and store its sum in that variable. - Calculate the expression using some of the following directives, registers, and instructions: OFFSET, PTR, TYPE, ESI, EAX, AX, EBX, BX, MOV, ADD, SUB, and INC. - Save the result in total. - Place comments in your code where needed. - Run your program and verify the content of EAX for the correct result. EAX=007D3003EBX=0093400AECX=00A11005EDX=00A11005ESI=00A14000EDI=00A11005EIP=00A1107ESP=007DFB40EBP=007DFB4CEFL=00000206OV=0UP=0EI=1PL=0ZR=0AC=0PE=1CY=0

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!