First you need to download and install Visual Studio 2015 Community if you do not already have it
https://www.visualstudio.com/downloads/
Then download the VASM source from http://sun.hasenbraten.de/vasm/ the source is in tar.gz form so you need to extract it using an archive program such as 7zip http://www.7-zip.org/download.html
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