The MASM Forum

Microsoft 64 bit MASM => MASM64 SDK => Topic started by: jj2007 on July 06, 2023, 08:14:16 AM

Title: Installing the Masm64 SDK
Post by: jj2007 on July 06, 2023, 08:14:16 AM
I just made a fresh install of the Masm64 SDK downloaded it here (https://masm32.com/board/index.php?topic=10052.0). The installer masm64sdk_beta_2b.exe has 8.52MB.

Download it. Windows will try everything to scare you away from running it. Read the legal stuff, and then decide if you want to become a fearless Assembly programmer, or if it's better to stick to C/C++ or Python.

In case you are courageous enough to run masm64sdk_beta_2b.exe:
When asked where to extract, put C:\ or D:\ or whatever your MASM drive is. Do not add a folder name.

Afterwards, you'll find a folder x:\Masm64 containing 34.5MB of files.

The only additional ingredient you need is ml64.exe: Download VC.14.29.16.11.Tools.HostX86.TargetX64 (https://download.visualstudio.microsoft.com/download/pr/a5caea7c-7f6b-4d48-9b80-c77732421206/62abc41e56191faaa597d3cb32814199a874ff06092c8dfe5608a2c857065864/Microsoft.VC.14.29.16.11.Tools.HostX86.TargetX64.base.vsix) (thanks, Timo); it's a small 15MB download. Open it with 7-zip, and inside the archive click your way through:

Contents->VC->Tools->MSVC->14.29.30133->bin->Hostx86->x64

Find ml64.exe and drag it into your \Masm64\bin folder.

I've tested a number of the sources in x:\Masm64\Examples.
When you open the *.asm file in RichMasm (http://masm32.com/board/index.php?topic=94.0) and hit F6, they assemble and run smoothly (and you don't need the makeit.bat). If not, give me feedback, please.

P.S.: If I find the time, I will try to develop a solution that makes the SDK compatible with UAsm (http://www.terraspace.co.uk/uasm.html#p2). This may take a while, though :cool:
Title: Re: Installing the Masm64 SDK
Post by: Caché GB on July 06, 2023, 09:03:11 AM
Finally.  :joking:
Title: Re: Installing the Masm64 SDK
Post by: jj2007 on July 07, 2023, 04:52:53 AM
I've added the best solution to find ML64.exe above.
Title: Re: Installing the Masm64 SDK
Post by: DeviousMalcontent on July 07, 2023, 09:55:42 AM
Quote from: jj2007 on July 06, 2023, 08:14:16 AM
I just made a fresh install of the Masm64 SDK downloaded here (https://masm32.com/board/index.php?topic=10052.0). The installer Jan_20_2023.exe has 8.5MB.

Download it. Windows will try everything to scare you away from running it. Read the legal stuff, and then decide if you want to become a fearless Assembly programmer, or if it's better to stick to C/C++ or Python.


It's a bit silly actually, I was trying to get the damn thing download it several times onto my main Windows PC, but Firefox kept bloody removing it, even after I told it that it was fine to download, or it was caused by Windows Defender, which is an exercise in futility to disable, because even with that it was still being flagged and removed by... 'something'.

I honestly don't have any antivirus on my PC whatsoever, and I haven't since the days of AVG free before they started selling users information.

All this is to say, I think the main reason the file is being flagged is because it has a generic name "Jan_20_2023.exe", without knowing what it is it's possible someone created something very similar that actually was a virus, I reckon to overcome this issue what we should do is distribute the SDK in a zip file, (or move it to an open git repository like GitLab), and rename it to be something more meaningful like Masm64SDKver, nearly every version of Windows ships with some software to extract zip files with, so I think the use of a self-extract is unnecessary.

I managed to get around the issue by downloading the SDK onto my MacBook, with Firefox, and yes it was flagged there as well, but after copying it over to a flash drive my main Windows PC didn't seem to care...  :cool:
Title: Re: Installing the Masm64 SDK
Post by: jj2007 on July 07, 2023, 10:10:38 AM
Here is a test, it works fine for me but no idea if your OS+settings allow it:

include \masm32\MasmBasic\MasmBasic.inc
  Init
  Let esi=FileRead$("http://www.masm32.com/download/Jan_20_2023.exe")
  FileWrite "Jan_20_2023.exe", esi, LastFileSize
  Launch "Jan_20_2023.exe"
EndOfCode


Exe and source attached, use at your own risk bla bla: just open the archive and double-click on the exe.
Title: Re: Installing the Masm64 SDK
Post by: zedd151 on July 07, 2023, 10:25:29 AM
Werks fer mi. Of course I'm running Windows 7 and zero AV. Very fast download, no browser overhead.  :tongue:


Title: Re: Installing the Masm64 SDK
Post by: DeviousMalcontent on July 07, 2023, 10:57:55 AM
Quote from: jj2007 on July 07, 2023, 10:10:38 AM
Here is a test, it works fine for me but no idea if your OS+settings allow it:

include \masm32\MasmBasic\MasmBasic.inc
  Init
  Let esi=FileRead$("http://www.masm32.com/download/Jan_20_2023.exe")
  FileWrite "Jan_20_2023.exe", esi, LastFileSize
  Launch "Jan_20_2023.exe"
EndOfCode


Exe and source attached, use at your own risk bla bla: just open the archive and double-click on the exe.

I'll have to give it a go when I get home tonight, I did try doing something similar with a PowerShell command, and it was still being removed (but I'll check again, because my memory is a bit iffy on that testing).

I know if I trigger the antivirus scanner at work it launches an investigation, so I'll check your attachment when I get home tonight, in the next 4-5hours or so.
Title: Re: Installing the Masm64 SDK
Post by: jj2007 on July 07, 2023, 11:07:57 AM
See Grab the 64-bit binaries (ML64.exe, link.exe) (https://masm32.com/board/index.php?topic=10934.0) :cool:
Title: Re: Installing the Masm64 SDK
Post by: jj2007 on July 07, 2023, 06:39:36 PM
Notice anything wrong?
    include \masm32\include64\masm64rt.inc

These files are affected:
\Masm64\Examples\Advanced\NewButns\lib\iButton.asm
\Masm64\Examples\Advanced\MBwin\Original\rsrc.rc
\Masm64\Examples\Advanced\MBwin\Original\MBwin.asm
\Masm64\Examples\Advanced\tEdit\Modules\is_selected.asm
\Masm64\Examples\Advanced\tEdit\Modules\set_ucase.asm
\Masm64\Examples\Advanced\tEdit\Modules\set_lcase.asm
\Masm64\Examples\Advanced\tEdit\Modules\tab_replace.asm
\Masm64\Examples\Advanced\tEdit\Modules\current_line_index.asm
Title: Re: Installing the Masm64 SDK
Post by: piton on September 23, 2024, 04:34:55 PM
Hello

Is there masm64 sdk in non self-extracted archive, i.e. non exe file? Maybe it sounds funny, but there is a problem to download or email an exe file. After some tries i have to disable windows security to finally download an exe from browser.
Another question - is it ok to place sdk packed by simple zip on my github (with description where i got it)?
Title: Re: Installing the Masm64 SDK
Post by: zedd on September 23, 2024, 05:40:46 PM
I cannot offer help with Windows security settings, or any antivirus program that may be preventing you from downloading. What operating system are you using, maybe someone else can assist you with that. Are you running any third party antivirus software? If yes, what company/brand is it? Sometimes antivirus software will prevent you from downloading certain types of files.

Quote from: piton on September 23, 2024, 04:34:55 PMAnother question - is it ok to place sdk packed by simple zip on my github (with description where i got it)?
If you are talking about posting the contents of the Masm64 SDK to your GitHub, the answer is NO

If you are talking about posting to GitHub your work that was made with The Masm64 SDK, the answer to that is YES - you can do as you see fit with it - it is your work.
Title: Re: Installing the Masm64 SDK
Post by: piton on September 26, 2024, 01:29:39 AM
QuoteI cannot offer help with Windows security settings, or any antivirus program that may be preventing you from downloading.
it's not a really big deal for me to disable some software for a while. But as for a masm 32 SDK i can just post a link to the download page and there will be the obvious zip file. And for masm 64 there is no download page (ok, it is beta now) and there is an exe file in the forum's post. It is an extremelly usefull thing for 64 masm. But you need to download a self-extracted exe instead of zip. And maybe play with your antivirus/browser/windows. And, yes, i did it already but i'm unable to place its content, so everyone interested have to do it.
Why so complicated? Or this is some kind of trial to get 'fearless Assembly programmers', not hard, but you have to do something :biggrin:
Title: Re: Installing the Masm64 SDK
Post by: zedd on September 26, 2024, 01:41:29 AM
Quote from: piton on September 26, 2024, 01:29:39 AMAnd, yes, i did it already but i'm unable to place its content
Are you getting any error messages?? If so, what exactly does it say? This will help track down why the installation is not working.

Or is nothing happening at all??

I just tested downloading the self extracting executable, it downloaded without issues.
I also ran the self extracting executable. It extracted the masm64 SDK exactly in the path I had chosen, in my case it is in D: (the root of drive D).
I am running WIndows 7 64 bit, using Opera Browser (ver. 95.0.4635.84).

What OS and which browser are you using, piton??
Title: Re: Installing the Masm64 SDK
Post by: piton on October 02, 2024, 01:51:48 AM
Hi, zedd151
Thanks for your effort, i already downloaded it, after some tries though.
Title: Re: Installing the Masm64 SDK
Post by: zedd on October 02, 2024, 02:01:02 AM
Quote from: piton on October 02, 2024, 01:51:48 AMThanks for your effort, i already downloaded it, after some tries though.
:thumbsup:
Title: Re: Installing the Masm64 SDK
Post by: jj2007 on October 02, 2024, 02:29:21 AM
Quote from: piton on September 26, 2024, 01:29:39 AMBut you need to download a self-extracted exe instead of zip.

Show me one professional software that comes with a zip archive instead of an installer.
Title: Re: Installing the Masm64 SDK
Post by: zedd on October 02, 2024, 04:53:03 AM
Quote from: jj2007 on October 02, 2024, 02:29:21 AMShow me one professional software that comes with a zip archive instead of an installer.
The original version of the masm64 SDK download was a zip file "masm64v01.zip". https://masm32.com/board/index.php?topic=5669.0 (https://masm32.com/board/index.php?topic=5669.0)   :smiley:
Title: Re: Installing the Masm64 SDK
Post by: NoCforMe on October 02, 2024, 07:08:15 AM
You're calling that professional???
Title: Re: Installing the Masm64 SDK
Post by: zedd on October 02, 2024, 07:17:39 AM
Quote from: NoCforMe on October 02, 2024, 07:08:15 AMYou're calling that professional???

Nah, just mentioning that the original Masm64 SDK download was in fact a zip file, and not a self extracting archive.   :biggrin:
Title: Re: Installing the Masm64 SDK
Post by: piton on October 02, 2024, 07:08:52 PM
Quote from: jj2007 on October 02, 2024, 02:29:21 AMShow me one professional software that comes with a zip archive instead of an installer.
ILSpy has zip, vsix and msi https://github.com/icsharpcode/ILSpy/releases (https://github.com/icsharpcode/ILSpy/releases)
Process monitor just a zip file https://learn.microsoft.com/en-us/sysinternals/downloads/procmon (https://learn.microsoft.com/en-us/sysinternals/downloads/procmon)
The MASM32 SDK just a zip file as well
Standalone software doesnt need an installer, you just copy bunch of files to some folder and use it.
Title: Re: Installing the Masm64 SDK
Post by: megavlad on May 02, 2025, 11:32:01 PM
Just tried to download this and, like others, have been prevented by the browser/os at every point. Have not been able to do it.

There is no reason this needs to be an executable. Just make it into a zip file, like the original, and all these issues go away. A zip is also more convenient, anyway.
Title: Re: Installing the Masm64 SDK
Post by: zedd on May 02, 2025, 11:50:01 PM
Quote from: megavlad on May 02, 2025, 11:32:01 PMJust tried to download this and, like others, have been prevented by the browser/os at every point. Have not been able to do it.
What browser and version number. Which OS and version number?
Maybe there is a solution for your particular arrangement.

QuoteJust make it into a zip file, like the original, and all these issues go away. A zip is also more convenient, anyway.
Well, maybe. But zip files too, can trigger negative responses from AV software.
Title: Re: Installing the Masm64 SDK
Post by: megavlad on May 03, 2025, 01:02:59 AM
I managed to get it installed. Required me to disable the builtin antivirus.
Title: Re: Installing the Masm64 SDK
Post by: zedd on May 03, 2025, 01:04:18 AM
Quote from: megavlad on May 03, 2025, 01:02:59 AMI managed to get it installed. Required me to disable the builtin antivirus.
:thumbsup:
Just remember to re-enable it.  :tongue:
Title: Re: Installing the Masm64 SDK
Post by: Quin on May 05, 2025, 02:01:51 AM
Thanks for this JJ2007, I managed to get masm64 installed and fully working thanks to these instructions a couple days ago  :smiley:
I still prefer 32-bit assembler, but this is a good tool to have.
Title: Re: Installing the Masm64 SDK
Post by: zedd on May 05, 2025, 02:05:48 AM
Quote from: Quin on May 05, 2025, 02:01:51 AMThanks for this JJ2007, I managed to get masm64 installed and fully working thanks to these instructions a couple days ago  :smiley:
Glad you got everything okay.

QuoteI still prefer 32-bit assembler, but this is a good tool to have.
Oh, me too.  :thumbsup:
Title: Re: Installing the Masm64 SDK
Post by: Quin on May 05, 2025, 02:56:18 AM
Quote from: zedd on May 05, 2025, 02:05:48 AM
QuoteI still prefer 32-bit assembler, but this is a good tool to have.
Oh, me too.  :thumbsup:
I know that 64-bit is the future and wanted to look at 64-bit assembly for that reason, but then I saw how parmarea works and how much more complicated the code looks and noped. :D
Title: Re: Installing the Masm64 SDK
Post by: zedd on May 05, 2025, 03:00:35 AM
Hi Quin, since you have the capability maybe you will be interested in a few easy examples in 64 bit.
They are basically direct conversions from 32 bit for the most part... with minor changes where necessary.
https://masm32.com/board/index.php?topic=12286.0 (https://masm32.com/board/index.php?topic=12286.0)

Each of those examples have a 32 bit counterpart in the Masm32 SDK examples folder...
Title: Re: Installing the Masm64 SDK
Post by: Quin on May 05, 2025, 03:12:19 AM
Quote from: zedd on May 05, 2025, 03:00:35 AMHi Quin, since you have the capability maybe you will be interested in a few easy examples in 64 bit.
They are basically direct conversions from 32 bit for the most part... with minor changes where necessary.
https://masm32.com/board/index.php?topic=12286.0 (https://masm32.com/board/index.php?topic=12286.0)

Each of those examples have a 32 bit counterpart in the Masm32 SDK examples folder...
HI Zedd,
Thanks for these! Downloading and giving them a look!  :cool:
Title: Re: Installing the Masm64 SDK
Post by: zedd on May 05, 2025, 03:17:28 AM
Quote from: Quin on May 05, 2025, 03:12:19 AMHI Zedd,
Thanks for these! Downloading and giving them a look!  :cool:
No problem Quin.  :smiley:
If you have any comments about those examples, please post in that thread linked in post #27 to not clutter this one...
Title: Re: Installing the Masm64 SDK
Post by: NoCforMe on May 05, 2025, 06:09:49 AM
Quote from: Quin on May 05, 2025, 02:56:18 AM
Quote from: zedd on May 05, 2025, 02:05:48 AM
QuoteI still prefer 32-bit assembler, but this is a good tool to have.
Oh, me too.  :thumbsup:
I know that 64-bit is the future and wanted to look at 64-bit assembly for that reason, but then I saw how parmarea works and how much more complicated the code looks and noped. :D
Yepper.

Take my advice and stick with 32-bit code.
64-bit is total overkill for 90% of applications. No, make that 95%.
Plus it is a pain in the ass to deal with.
Plus our 64-bit package is sadly deficient, as everyone here will tell you.

(The only real advantage I can see is that you get a lot more general-purpose registers to play with.)
Title: Re: Installing the Masm64 SDK
Post by: zedd on May 05, 2025, 07:09:22 AM
Quote from: NoCforMe on May 05, 2025, 06:09:49 AMTake my advice and stick with 32-bit code.
64-bit is total overkill for 90% of applications. No, make that 95%.
Plus it is a pain in the ass to deal with.
Plus our 64-bit package is sadly deficient, as everyone here will tell you.

(The only real advantage I can see is that you get a lot more general-purpose registers to play with.)
I stole this quote from someone else here (slightly modified)...
"This type of bitching, and sniping is what made me quit the forum before."
:biggrin:

But seriously.. as there are more and more users here programming in 64 bit, it is nice to have a Masm64 SDK setup on your machine. This way you can help others with problems with their code.

That is how I mainly use ml64 anymore, aside from simple tests in 64 bit for other members like the one I posted today.

I did give 64 bit an earnest try, but I too stick with 32 for the most part. But I do not knock anyone for wanting to program in 64 bit, or dissuade them from learning it.
Title: Re: Installing the Masm64 SDK
Post by: NoCforMe on May 05, 2025, 07:22:37 AM
Quote from: zedd on May 05, 2025, 07:09:22 AM
Quote from: NoCforMe on May 05, 2025, 06:09:49 AMTake my advice and stick with 32-bit code.
64-bit is total overkill for 90% of applications. No, make that 95%.
Plus it is a pain in the ass to deal with.
Plus our 64-bit package is sadly deficient, as everyone here will tell you.

(The only real advantage I can see is that you get a lot more general-purpose registers to play with.)
I stole this quote from someone else here (slightly modified)...
"This type of bitching, and sniping is what made me quit the forum before."
:biggrin:

But seriously.. as there are more and more users here programming in 64 bit, it is nice to have a Masm64 SDK setup on your machine. This way you can help others with problems with their code.

That is how I mainly use ml64 anymore, aside from simple tests in 64 bit for other members like the one I posted today.

I did give 64 bit an earnest try, but I too stick with 32 for the most part. But I do not knock anyone for wanting to program in 64 bit, or dissuade them from learning it.

So what, exactly, is your point here, Zedd?
Are you politely trying to tell me to STFU?
If so, then no.

How is this remotely "bitching and sniping"?
I cast aspersion on nobody here.
Just giving my opinion, FWIW, on the use of 64-bit MASM (and the state of our package, which everyone knows is not very good).

Sheesh.
Title: Re: Installing the Masm64 SDK
Post by: zedd on May 05, 2025, 07:24:30 AM
No. Just saying that 64 bit is sometimes useful to have/use.  :smiley:

Nevermind the stolen quote, I was pretty much yanking your chain there.  :biggrin:  :biggrin:
Title: Re: Installing the Masm64 SDK
Post by: NoCforMe on May 05, 2025, 07:31:48 AM
Quote from: zedd on May 05, 2025, 07:24:30 AMNevermind the stolen quote, I was pretty much yanking your chain there.  :biggrin:  :biggrin:

Well, in case you were wondering, you succeeded.
Those stupid emojis don't make it any better, BTW.
Title: Re: Installing the Masm64 SDK
Post by: zedd on May 05, 2025, 07:32:51 AM
Quote from: NoCforMe on May 05, 2025, 07:31:48 AMYou and your stupid emojis ...
:skrewy:
Title: Re: Installing the Masm64 SDK
Post by: Quin on May 05, 2025, 07:51:46 AM
Quote from: NoCforMe on May 05, 2025, 06:09:49 AMTake my advice and stick with 32-bit code.
64-bit is total overkill for 90% of applications. No, make that 95%.
Plus it is a pain in the ass to deal with.
Plus our 64-bit package is sadly deficient, as everyone here will tell you.

(The only real advantage I can see is that you get a lot more general-purpose registers to play with.)
You get more general-purpose registers and can access the computer's entire address space (128 GB in my case) instead of just 2 GB. In practice, you almost never need that, though, and if you do, I'll assume you're an Electron app  :tongue:
Windows 11 is now shipping only in 64-bit though, but I don't see 32-bit compatibility going anywhere in the next decade at the very least.
Title: Re: Installing the Masm64 SDK
Post by: Quin on May 05, 2025, 07:52:55 AM
Quote from: NoCforMe on May 05, 2025, 07:31:48 AM
Quote from: zedd on May 05, 2025, 07:24:30 AMNevermind the stolen quote, I was pretty much yanking your chain there.  :biggrin:  :biggrin:

Well, in case you were wondering, you succeeded.
Those stupid emojis don't make it any better, BTW.
You tell people exactly how to antagonize you...and then get surprised when they do.  :skrewy:
Title: Re: Installing the Masm64 SDK
Post by: NoCforMe on May 05, 2025, 08:31:35 AM
Quote from: Quin on May 05, 2025, 07:52:55 AM
Quote from: NoCforMe on May 05, 2025, 07:31:48 AM
Quote from: zedd on May 05, 2025, 07:24:30 AMNevermind the stolen quote, I was pretty much yanking your chain there.  :biggrin:  :biggrin:

Well, in case you were wondering, you succeeded.
Those stupid emojis don't make it any better, BTW.
You tell people exactly how to antagonize you...and then get surprised when they do.  :skrewy:

Nope, no surprise here.
Title: Re: Installing the Masm64 SDK
Post by: sinsi on May 05, 2025, 10:29:32 AM
Quote from: zedd on May 05, 2025, 07:09:22 AMI stole this quote from someone else here (slightly modified)...
"This type of bitching, and sniping is what made me quit the forum before."
:biggrin:
:cool:
Title: Re: Installing the Masm64 SDK
Post by: Quin on May 05, 2025, 04:29:29 PM
Quote from: NoCforMe on May 05, 2025, 08:31:35 AMNope, no surprise here.
Well, you know what they say about throwing a rock and then hiding your hand... :biggrin:
Title: Re: Installing the Masm64 SDK
Post by: jj2007 on May 05, 2025, 05:38:00 PM
Quote from: zedd on May 05, 2025, 07:32:51 AM
Quote from: NoCforMe on May 05, 2025, 07:31:48 AMYou and your stupid emojis ...
:skrewy:

I can echo that :cool: