Find-The-Errors. The following assembly program has a few small errors. Find them and fix them. INCLUDE Irvine32.inc .data Prompt1 BYTE "Enter the first number: ",0 Prompt2 BYTE "Enter the second...

Assembly homework, language is C++, need help plz solve it quickly for Multiple UpvoteFind-The-Errors. The following assembly program has a few small errors. Find them and fix<br>them.<br>INCLUDE Irvine32.inc<br>.data<br>Prompt1 BYTE

Extracted text: Find-The-Errors. The following assembly program has a few small errors. Find them and fix them. INCLUDE Irvine32.inc .data Prompt1 BYTE "Enter the first number: ",0 Prompt2 BYTE "Enter the second number: ",0 Num1 WORD ? Num2 WORD ? Answer WORD ? Answer1 BYTE " Answer2 BYTE " = ", 0 .code main PROC MOV EDX, OFFSET prompt1 CALL WriteString CALL ReadDec MOV num1, EAX ;Prompt for the first number MOV EDX, OFFSET prompt2 CALL WriteString CALL ReadDec ;Prompt for the second number MOV num2, EAX SUB EAX, num1 MOV answer, EAX ;Calculate num2 - num1 MOV EAX, num2 CALL Writelnt MOV ECX, OFFSET answer1 CALL WriteString MOV EBX, num1 ;Print the answer

Jun 06, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here