Author Topic: masm64 development  (Read 2137 times)

Mikl__

  • Member
  • ****
  • Posts: 528
Re: masm64 development
« Reply #15 on: October 29, 2016, 11:10:55 PM »
bat-file for ml64
Code: [Select]
cls
set masm64_path=c:\masm64\
set filename=%1
if exist %1.exe del %1.exe
%masm64_path%bin\ml64 /Cp /c /I"%masm64_path%Include" %filename%.asm || exit
if exist %1.rc (
%masm64_path%bin\RC /r  %filename%.rc || exit
%masm64_path%bin\link /SUBSYSTEM:WINDOWS /LIBPATH:"%masm64_path%Lib" ^
/entry:WinMain %filename%.obj %filename%.res /LARGEADDRESSAWARE:NO ^
/ALIGN:16 /SECTION:.text,W ^
/BASE:0x400000 /STUB:%masm64_path%\bin\stubby.exe || exit
del %filename%.res
) else (
%masm64_path%bin\link /SUBSYSTEM:WINDOWS /LIBPATH:"%masm64_path%Lib" ^
/entry:WinMain %filename%.obj /LARGEADDRESSAWARE:NO ^
/ALIGN:16 /SECTION:.text,W ^
/BASE:0x400000 /STUB:%masm64_path%\bin\stubby.exe || exit
)
del %filename%.obj

Siekmanski

  • Member
  • *****
  • Posts: 1079
Re: masm64 development
« Reply #16 on: October 30, 2016, 12:00:13 AM »
2 more:

Code: [Select]
EXPAND D:\packages\VisualC_D14\VC_Tools.X64.Nat\cab1.cab /f:dumpbin.exe_6qfeuaVcwqcOX84b7CsOhac1naE_x86 .
REN dumpbin.exe_6qfeuaVcwqcOX84b7CsOhac1naE_x86 dumpbin.exe
EXPAND D:\packages\VisualC_D14\VC_Tools.X64.Nat\cab1.cab /f:editbin.exe_09xhUyB35xyQiEddXA2YGxoeq8A_x86 .
REN editbin.exe_09xhUyB35xyQiEddXA2YGxoeq8A_x86 editbin.exe