Question: Write the code of assembly language Using MASM.Please include the Irvine library in the code too. example of the format should only use these kings
Write the code of assembly language Using MASM.Please include the Irvine library in the code too. example of the format should only use these kings of things not the NASM things.
INCLUDE Irvineinc
model flat, stdcall
stack
ExitProcess PROTO, dwExitCode: DWORD
data
left DWORD
right DWORD
total DWORD
diff DWORD
message BYTE "Hello World!",
Array WORD
ArrayLength $ Array
code
main PROC
;Sum of the two variables
mov eax, left
add eax, right
mov total, eax
;Difference between two variables
mov eax, right
sub eax, left
mov diff, eax
;Content to Registers
mov eax, left
mov ebx, right
mov ecx, total
mov edx, diff
mov esi, ArrayLength
call DumpRegs
INVOKE ExitProcess,
main ENDP
END main
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
