Home /
Expert Answers /
Computer Science /
my-assignment-is-to-create-two-dword-variables-then-prompt-for-input-and-store-the-values-input-f-pa653
(Solved):
My assignment is to create two DWORD variables, then prompt for input and store the values input f ...
My assignment is to create two DWORD variables, then prompt for input and store the values input from the keyboard into variables. Subtract the second number from the first and output the difference. Then use logic swap on the values in the two variables with eachother \& output the swapped values. This assignment is to be written in Assembly language. Attached is my working code, however there are errors. Any help is appreciated.
Answer:- CODE IN ASSEMBLY INCLUDE asmlib.inc .data prompt BYTE "Enter a number: ", 0 outP1 BYTE "The difference of your numbers is ", 0 outP2 BYTE "The difference