This is not affiliated with the dasm project in any way, nor is this a superior or officially supported way to use it.
Go to the dasm page and download the binaries if you just want to run dasm.
This lets you create a Docker container you can use to run dasm without installing it.
This docker image is built in these steps:
- Clone dasm from github
- Compile dasm with gcc
- Copy the output to the base image. The entrypoint for the image is the dasm executable.
In the end, you can run the container in place of a locally installed executable (see below).
docker build . -t dasm-docker --build-arg DASM_BRANCH=master # master is the defaultFor convenience, this repository also has a pre-built version of the image here.
Assume your game is called "game1". You can build the binaries for NTSC like this:
docker run --rm -it -v .:/home/dasm dasm-docker game1.asm -ogame1_ntsc2.bin -lgame1_ntsc.lst -sgame1_ntsc.sym -DNTSC=1 -DNO_ILLEGAL_OPCODES=1 -S -f3 -v5 -I/opt/dasm/machines/atari2600Note the -v switch to mount the current directory to the /home/dasm volume.
My Linux distro (Fedora) didn't have a package for dasm and it gave me an idea to try and make it "portable" with Docker.
Would Flatpak or AppImage be better? Yes, probably. Why don't you get on that.