Awesome
Merlin32-v1.1-accumulator (forked from Merlin32 v1.0)
This version of the assembler was forked from the 1.0 version of the Merlin32 assembler from Brutal Deluxe Software. The original from Brutal Delux Software now has an updated 1.1 version. It is recommeneded that you use that one instead:
http://www.brutaldeluxe.fr/products/crossdevtools/merlin/
Install from binary release zip file
- Download the zip file for your platform. For example: merlin32-v1.1.0-macos-powerpc-installer.zip
- <code>unzip merlin32-v1.1.0-macos-powerpc-installer.zip</code>
- <code>cd merlin32</code>
- <code>./run-this-to-install</code>
- Enter your password.
Build from Source and Install
There are 2 different make files.
- GNUmakefile - Used for Mac, Linux, BSD UNIX, OpenIndiana & Solaris
- Makefile - Used for Windows with nmake and MSVC
The build process is too different between Windows and the other platforms to be done with the same make file. Using the current make file naming convention allows the builder to use the same workflow regardless of the platform. GNU make on Mac, Linux and BSD UNIX automatically looks for GNUmakefile first and will ignore Makefile if GNUmakefile exists. Likewise, nmake on Windows will ignore GNUmakefile and use Makefile instead.
Mac, Linux, BSD UNIX, OpenIndiana, Solaris
Make sure GNU Make is installed. Depending on your platform, you may have to invoke it with gmake rather than make.
Build with default install loaction
- <code>git clone https://github.com/apple2accumulator/merlin32</code>
- <code>cd merlin32/Source</code>
- <code>make</code> or <code>gmake</code> to get GNU make
- <code>sudo make install</code>
This will install it into these locations:
<code>/usr/local/bin/merlin32</code><br> <code>/usr/local/share/merlin32/asminc/*.Mac.s</code>
Alternate Install Location (currently doesn't work)
The default install location (PREFIX) is /usr/local. You can change the install location like this. Make sure you specify the PREFIX on both steps.
- <code>git clone https://github.com/apple2accumulator/merlin32</code>
- <code>cd merlin32/Source</code>
- <code>make PREFIX=/opt/merlin32</code>
- <code>sudo make PREFIX=/opt/merlin32 install</code>
This would install to:
<code>/opt/merlin32/bin/merlin32</code><br> <code>/opt/merlin32/share/merlin32/asminc/*.Mac.s</code>
Then you would have to manually add to your PATH because that bin directory is not normally in the PATH like /usr/local/bin is.
Windows
Install
- Start a Visual Studio Command Prompt from the Start Menu.
- <code>git clone https://github.com/apple2accumulator/merlin32</code>
- <code>cd merlin32/Source</code>
- <code>nmake</code>
- <code>nmake install</code>
This will install it into C:\Users<You>\Applications\merlin32 and will automatically put the bin directory into the path. You'll have to start a new Command Prompt to see it in the path.
The install copies to these locations:
<code>C:\Users<You>\Applications\merlin32\bin\merlin32.exe</code><br> <code>C:\Users<You>\Applications\merlin32\asminc\*.Macs.s</code>
Options (currently not supported)
To get it to install into "C:\Program Files" would require a setup application that would be able to do privilege escalation. That is not currently supported. But you could install into a directory like C:\opt because that is not protected like "C:\Program Files". To do that build it like this:
- Start a Visual Studio Command Prompt from the Start Menu.
- <code>git clone https://github.com/apple2accumulator/merlin32</code>
- <code>cd merlin32/Source</code>
- <code>nmake clean</code>
- <code>nmake PREFIX=C:\opt\merlin32 install</code>
On Windows, the bin directory is automatically added to the PATH regardless of where it is installed. This is done with the script merlin32\Scripts\addtopath.bat.
Uninstall
The merlin32\Scripts\uninstall.bat script will uninstall it from the standard folder C:\Users\You\Applications\merlin32.
If you installed it to another location, just delete that directory. For example:
<code>rmdir /s C:\opt\merlin32</code>
Running
Invoking Merlin32 should be the same on all platforms.
After running the above install step, merlin32 should be in your PATH.
The location of the macro library files is compiled into the executable so it is optional on the command line. You can run it with or without specifying the macro library directory. So it is backward compatible with the original release.
<code>$ merlin32 ~/git/merlin32/Library skynet.s</code><br> <code>$ merlin32 skynet.s</code> (Will automatically use PREFIX/share/merlin32/asminc)
Merlin32 Setup for Visual Studio: https://marketplace.visualstudio.com/items?itemName=OlivierGuinartMSFT.Merlin32LanguageService
Merlin32 (and cc65) Setup for Xcode https://github.com/jeremysrand/Apple2BuildPipeline