To enable MASM (Microsoft Macro Assembler) in Visual Studio, you must first ensure you have the Desktop development with C++…