Final answer:
The immediate values used in the MASM program are 5, 6, and 0. Even if 'sum' were not initialized to 0, the 'mov sum,eax' instruction would still store the value 11 into 'sum'.
Step-by-step explanation:
In the given MASM program, the immediate values being used are 5, 6, and 0. An immediate value is a constant data specified in the instruction itself. In this program:
- The 'mov eax,5' instruction uses the immediate value 5.
- The 'add eax,6' instruction uses the immediate value 6.
- The 'invoke ExitProcess,0' instruction uses the immediate value 0.
For question (2), the answer is Yes. If sum were not initialized to 0, the 'mov sum,eax' instruction would still store the value of EAX, which is 11, into sum. The initialization of sum to 0 has no impact on the instruction that moves the content of EAX to sum.