Skip to content

Instantly share code, notes, and snippets.

@Jfaler
Last active November 19, 2021 06:58
Show Gist options
  • Save Jfaler/bec8c08f7af355f5f394854549c1c0c6 to your computer and use it in GitHub Desktop.
Save Jfaler/bec8c08f7af355f5f394854549c1c0c6 to your computer and use it in GitHub Desktop.
MASM Command line

MASM ml64 & ml

Commands to compile assembly for the Kip Irvine library

MASM Files location

C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\bin

MASM ml64 x64 command

ml /DM=main example.asm /link /entry:main /subsystem:console
ml /DM=main example.asm /link /entry:main /subsystem:windows

MASM ml x86 command

ml64 /DM=main example.asm /link /entry:main@0 /subsystem:console
ml64 /DM=main example.asm /link /entry:main@0 /subsystem:windows

Code-Runner settings for cmd.exe

cd $dir && ml /DM=main $fileNameWithoutExt.asm /link /entry:main@0 /subsystem:console /OUT:$fileNameWithoutExt.exe

Ml64 attempt

ml64 /nologo /Zi /Zd /I C:\\Irvine /Fe link /ENTRY:"main" /LARGEADDRESSAWARE:NO C:/Irvine/Project64/Irvine64.obj kernel32.lib
@Jfaler
Copy link
Author

Jfaler commented Sep 15, 2020

ml64.exe /c /nologo /Zi /Fo"x64\Debug%(FileName).obj" /W3 /errorReport:prompt /Ta

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment