Member-only story

Writing Calcutron-33 Assembly Code

The practice of writing and testing assembly code

Erik Engheim
12 min readDec 3, 2022

If you have read my previous stories on Calcutron-33 assembly programming, you will have an idea of what instructions exists and what they do. However, that doesn’t mean you have a good sense of how to write assembly programs. Here I will give you an intro to how to use the Calcutron-33 tools to write and run programs.

Installing Calcutron-33 Assembler and Simulator

Go to my Calcutron-33 repository and download one of the binary releases for your operating system. The downloaded zip file will contain an executable named cutron or cutron.exe (if on Windows). To use the application, you simply need to place this executable in a location accessible by your path. A simple solution would be to place cutron in $HOME/bin or /usr/local/bin. If you are unfamiliar with setting the PATH environment variable to point to a directory with the cutron executable, I advise you to read my Unix Command Line Crash Course, which covers this and more. If cutron has been correctly installed, you should be able to run it from a terminal window and get the following result:

--

--

Erik Engheim
Erik Engheim

Written by Erik Engheim

Geek dad, living in Oslo, Norway with passion for UX, Julia programming, science, teaching, reading and writing.

No responses yet