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 AddSubasm; This program adds and subtracts bit integers; and stores the sum in a variable.INCLUDE Irvineinc.dataval dword hval dword hval dword hfinalVal dword codemain PROCmoveax,val; start with haddeax,val; add hsubeax,val; subtract hmovfinalVal,eax; store the result hcallDumpRegs; 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
