Skip to content

The Merlin 32 assembler for the Apple II from Brutal Deluxe Software

Notifications You must be signed in to change notification settings

lroathe/merlin32

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Merlin32

The Merlin 32 assembler for the Apple II from Brutal Deluxe Software. More information, documentation, etc available at:

http://www.brutaldeluxe.fr/products/crossdevtools/merlin/

Install from binary release zip file

  1. Download the zip file for your platform. For example: merlin32-v1.1.0-macos-powerpc-installer.zip
  2. unzip merlin32-v1.1.0-macos-powerpc-installer.zip
  3. cd merlin32
  4. ./run-this-to-install
  5. Enter your password.

Build from Source and Install

There are 2 different make files.

  1. GNUmakefile - Used for Mac, Linux & BSD UNIX
  2. 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

Build with default install loaction

  1. git clone https://github.com/apple2accumulator/merlin32
  2. cd merlin32/Source
  3. make
  4. sudo make install

This will install it into these locations:

/usr/local/bin/merlin32
/usr/local/share/merlin32/asminc/*.Mac.s

Alternate Install Location

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.

  1. git clone https://github.com/apple2accumulator/merlin32
  2. cd merlin32/Source
  3. make PREFIX=/opt/merlin32
  4. sudo make PREFIX=/opt/merlin32 install

This would install to:

/opt/merlin32/bin/merlin32
/opt/merlin32/share/merlin32/asminc/*.Mac.s

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

  1. Start a Visual Studio Command Prompt from the Start Menu.
  2. git clone https://github.com/apple2accumulator/merlin32
  3. cd merlin32/Source
  4. nmake
  5. nmake install

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:

C:\Users<You>\Applications\merlin32\bin\merlin32.exe
C:\Users<You>\Applications\merlin32\asminc\*.Macs.s

Options

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:

  1. Start a Visual Studio Command Prompt from the Start Menu.
  2. git clone https://github.com/apple2accumulator/merlin32
  3. cd merlin32/Source
  4. nmake clean
  5. nmake PREFIX=C:\opt\merlin32 install

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:

rmdir /s C:\opt\merlin32

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.

$ merlin32 ~/git/merlin32/Library skynet.s
$ merlin32 skynet.s (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

About

The Merlin 32 assembler for the Apple II from Brutal Deluxe Software

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 73.9%
  • Assembly 24.2%
  • Other 1.9%