Simple testing project for assembly
- Add a .asm file into source files
- Right click the project and go to Build Dependencies->Build Customizations..., check the masm (.targets, .props) checkbox
- Right click the .asm file and go to Properties, set the Item Type to Microsoft Macro Assembler
- Project properties: Linker->System Enable Large Addresses=No
- Project properties: Linker->Advanced Entry Point="main"
- Open x64 Native Tools Command Prompt for VS 2022
- Note this is not the same as the Developer Command Prompt for VS 2022 or Developer Power Shell for VS 2022!
- cd into the source directory and run the following command to generate helloWorld.exe
ml64 hello.asm /link /subsystem:console /entry:main