Question: TITLE Add and Subtract, Version 2 ( AddSub 2 . asm ) ; This program adds and subtracts 3 2 - bit integers; and stores

TITLE Add and Subtract, Version 2(AddSub2.asm); This program adds and subtracts 32-bit integers; and stores the sum in a variable.INCLUDE Irvine32.inc.dataval1 dword 10000hval2 dword 40000hval3 dword 20000hfinalVal dword ?.codemain PROCmoveax,val1; start with 10000haddeax,val2; add 40000hsubeax,val3; subtract 20000hmovfinalVal,eax; store the result (30000h)callDumpRegs; display the registersexitmain ENDPEND mainIf your code execute correctly type done. Otherwise, type the error you got and try to solve the problem. If you were able to fix it, share the solution with others

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!