Compiling VASM with Visual Studio 2015 Community

All 680x0 related coding posts in this section please.

Moderators: simonsunnyboy, Mug UK, Zorro 2, Moderator Team

Posts: 26
Joined: Thu Dec 27, 2012 4:15 am
Location: Queensland

Compiling VASM with Visual Studio 2015 Community

Postby Spectone » Thu Sep 29, 2016 1:58 pm

How to compile the VASM assembler under Windows with the free Visual Studio 2015 Community

First you need to download and install Visual Studio 2015 Community if you do not already have it

Then download the VASM source from the source is in tar.gz form so you need to extract it using an archive program such as 7zip

extract the VASM archive to your hard drive

Now go into the Start Menu and select "All Programs"
Then select "Visual Studio 2015"
Then select "Visual Studio Tools"
Then run the "Developer Command Prompt for VS2015"

This will bring up a command prompt window which has already been given the path to the command line compiler and tools

Change directory in this command prompt to where you extracted the VASM archive. This should be the directory containing the file Makefile.Win32
make the directory obj_win32 with the command

Code: Select all

mkdir obj_win32

run the following command

Code: Select all

nmake /F Makefile.Win32 CPU=m68k SYNTAX=mot

This will compile and build VASM as vasmm68k_mot_win32.exe it also makes vobjdump_win32.exe.

An example of assembling with VASM is as follows

Code: Select all

vasmm68k_mot_win32.exe test.asm -Ftos -o test.tos

Which will assemble the file test.asm and produce a program test.tos

Edit: I updated it as I forgot a step

Captain Atari
Captain Atari
Posts: 299
Joined: Mon May 04, 2015 9:02 pm

Re: Compiling VASM with Visual Studio 2015 Community

Postby EstTeeEfEm » Sat Feb 04, 2017 1:23 am

Just to let people know, if you're installing VS2015 for this purpose, the C++ Language is NOT installed by default.

When you run setup, you need to select it as a language in order to use this tutorial. (You can also use "Modify" if you have got VS installed already).

This was a major step that I missed and it took a while to find out why I had CL errors..

Other than that, Thanks man, exactly the info I was looking for!! :D Kudos to you

User avatar
Atari Super Hero
Atari Super Hero
Posts: 580
Joined: Thu Nov 25, 2004 1:03 pm
Location: Kent, England

Re: Compiling VASM with Visual Studio 2015 Community

Postby NiceGuyUK » Tue Jun 20, 2017 11:41 am

Also note that non-Windows machines are capable of producing Windows binaries for others to use. It's how I built them for
Also known as Big Boss Man of Demografica

Social Media


Return to “680x0”

Who is online

Users browsing this forum: No registered users and 3 guests